Sorin Marian Nasoi has proposed merging lp:~zorba-coders/zorba/add-item-module 
into lp:zorba.

Commit message:
Add CMakeLists and trivial test for item module.

Requested reviews:
  Sorin Marian Nasoi (sorin.marian.nasoi)
  Chris Hillery (ceejatec)

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/add-item-module/+merge/185194
-- 
https://code.launchpad.net/~zorba-coders/zorba/add-item-module/+merge/185194
Your team Zorba Coders is subscribed to branch lp:zorba.
=== added file 'modules/item/CMakeLists.txt'
--- modules/item/CMakeLists.txt	1970-01-01 00:00:00 +0000
+++ modules/item/CMakeLists.txt	2013-09-12 04:14:43 +0000
@@ -0,0 +1,16 @@
+# Copyright 2006-2013 The FLWOR Foundation.
+# 
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# 
+# http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+DECLARE_ZORBA_MODULE(FILE item.xq VERSION 1.0
+  URI "http://zorba.io/modules/item";)

=== added file 'test/rbkt/ExpQueryResults/zorba/misc/item-size.xml.res'
--- test/rbkt/ExpQueryResults/zorba/misc/item-size.xml.res	1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/misc/item-size.xml.res	2013-09-12 04:14:43 +0000
@@ -0,0 +1,1 @@
+true

=== added file 'test/rbkt/Queries/zorba/misc/item-size.xq'
--- test/rbkt/Queries/zorba/misc/item-size.xq	1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/misc/item-size.xq	2013-09-12 04:14:43 +0000
@@ -0,0 +1,7 @@
+(: We can't test the exact output of item:size() as it is platform-dependent.
+   However we can at least check that we can call it without error. :)
+
+import module namespace item = "http://zorba.io/modules/item";;
+
+item:size(1) gt 1
+

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to     : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp

Reply via email to