khfaraaz82@gmail.com | c526fe9 | 2012-08-10 22:09:13 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Test case Name : cpttostr01.aql |
| 3 | * Description : Test codepoint-to-string(codepoint) function. |
| 4 | * : Pass the codepoints which are in the internal dataset to the function. |
| 5 | * Success : Yes |
| 6 | * Date : 16th April 2012 |
| 7 | */ |
| 8 | |
| 9 | |
| 10 | drop dataverse test if exists; |
| 11 | create dataverse test; |
| 12 | use dataverse test; |
| 13 | |
| 14 | create type TestType as open{ |
| 15 | id:int32, |
| 16 | cpt:[int32] |
| 17 | } |
| 18 | |
| 19 | create dataset testds(TestType) partitioned by key id; |
| 20 | |
| 21 | // insert codepoint data into internal dataset testds here into the cpt attribute |
| 22 | |
| 23 | insert into dataset testds({"id":123,"cpt":[0048,0045,0057,0044,0065,0045,0090]}); |
| 24 | |
| 25 | write output to nc1:"rttest/string_cpttostr01.adm"; |
| 26 | |
| 27 | for $l in dataset('testds') |
| 28 | return codepoint-to-string($l.cpt) |