blob: 7516bea21b2473706ab0c3953144642005701d60 [file] [log] [blame]
khfaraaz82@gmail.comc526fe92012-08-10 22:09:13 +00001/*
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
10drop dataverse test if exists;
11create dataverse test;
12use dataverse test;
13
14create type TestType as open{
15id:int32,
16cpt:[int32]
17}
18
ramangrover29669d8f62013-02-11 06:03:32 +000019create dataset testds(TestType) primary key id;
khfaraaz82@gmail.comc526fe92012-08-10 22:09:13 +000020
21// insert codepoint data into internal dataset testds here into the cpt attribute
22
23insert into dataset testds({"id":123,"cpt":[0048,0045,0057,0044,0065,0045,0090]});
24
25write output to nc1:"rttest/string_cpttostr01.adm";
26
27for $l in dataset('testds')
28return codepoint-to-string($l.cpt)