blob: f6e9d523aadaea45c680f3739e3730c6a9dc81ee [file] [log] [blame]
vinayakb5ee049d2013-04-06 21:21:29 +00001/*
2 * Description : Tests that the FuzzyEqRule rewrites ~= using edit distance
3 * into edit-distance-check.
4 * Success : Yes
5 */
6
7drop dataverse test if exists;
8create dataverse test;
9use dataverse test;
10
11create type DBLPType as closed {
12 id: int32,
13 dblpid: string,
14 title: string,
15 authors: string,
16 misc: string
17}
18
19create dataset DBLP(DBLPType) primary key id;
20
21write output to nc1:"rttest/similarity_fuzzyeq-to-edit-distance-check.adm";
22
23set simfunction 'edit-distance';
24set simthreshold '1';
25
26// Tests two rules: FuzzyEqRule and SimilarityCheckRule
27for $o in dataset('DBLP')
28where $o.authors ~= "Michael J. Carey"
29return $o