[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    tests/kxpathtests/tests
From:       Frans Englich <frans.englich () telia ! com>
Date:       2006-05-02 23:45:05
Message-ID: 1146613505.051854.12773.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 536766 by englich:

Align with http://www.w3.org/Bugs/Public/show_bug.cgi?id=2944


 M  +12 -0     functions-datestimes.xml  


--- trunk/tests/kxpathtests/tests/functions-datestimes.xml #536765:536766
@@ -12,6 +12,8 @@
 		<test-case type="ebv">years-from-duration(xs:yearMonthDuration("P0003Y2M")) eq 3</test-case>
 		<test-case description="Simple test invoking years-from-duration() on a negative duration."
 			type="ebv">years-from-duration(xs:yearMonthDuration("-P0003Y2M")) eq -3</test-case>
+		<test-case description="Simple test invoking years-from-duration() on an negative xs:duration."
+			type="ebv">years-from-duration(xs:duration("-P3Y4M4DT1H23M2.34S")) eq -3</test-case>
 	</test-group>
 
           <test-group name="MonthsFromDurationFunc">
@@ -25,6 +27,8 @@
 		<test-case type="ebv">months-from-duration(xs:yearMonthDuration("P0003Y2M")) eq 2</test-case>
 		<test-case description="Simple test invoking months-from-duration() on a negative duration."
 			type="ebv">months-from-duration(xs:yearMonthDuration("-P0003Y2M")) eq -2</test-case>
+		<test-case description="Simple test invoking months-from-duration() on an negative xs:duration."
+			type="ebv">months-from-duration(xs:duration("-P3Y4M4DT1H23M2.34S")) eq -4</test-case>
 	</test-group>
 
           <test-group name="DaysFromDurationFunc">
@@ -40,6 +44,8 @@
 		<test-case description="Simple test invoking days-from-duration() on a negative duration."
 			type="ebv">days-from-duration(xs:dayTimeDuration("-P45678DT8H2M1.03S"))
 			eq -45678</test-case>
+		<test-case description="Simple test invoking days-from-duration() on an negative xs:duration."
+			type="ebv">days-from-duration(xs:duration("-P3Y4M8DT1H23M2.34S")) eq -8</test-case>
 	</test-group>
 
           <test-group name="HoursFromDurationFunc">
@@ -53,6 +59,8 @@
 		<test-case type="ebv">hours-from-duration(xs:dayTimeDuration("P3DT8H2M1.03S")) eq 8</test-case>
 		<test-case description="Simple test invoking hours-from-duration() on a negative duration."
 			type="ebv">hours-from-duration(xs:dayTimeDuration("-P3DT8H2M1.03S")) eq -8</test-case>
+		<test-case description="Simple test invoking days-from-hours() on an negative xs:duration."
+			type="ebv">hours-from-duration(xs:duration("-P3Y4M8DT1H23M2.34S")) eq -1</test-case>
 	</test-group>
 
           <test-group name="MinutesFromDurationFunc">
@@ -66,6 +74,8 @@
 		<test-case type="ebv">minutes-from-duration(xs:dayTimeDuration("P3DT8H2M1.03S")) eq 2</test-case>
 		<test-case description="Simple test invoking minutes-from-duration() on a negative duration."
 			type="ebv">minutes-from-duration(xs:dayTimeDuration("-P3DT8H2M1.03S")) eq -2</test-case>
+		<test-case description="Simple test invoking minutes-from-hours() on an negative xs:duration."
+			type="ebv">minutes-from-duration(xs:duration("-P3Y4M8DT1H23M2.34S")) eq -23</test-case>
 	</test-group>
 
           <test-group name="SecondsFromDurationFunc">
@@ -80,6 +90,8 @@
 			type="ebv">seconds-from-duration(xs:dayTimeDuration("P3DT8H2M1.03S")) eq 1.03</test-case>
 		<test-case description="Simple test invoking seconds-from-duration() on a negative duration."
 			type="ebv">seconds-from-duration(xs:dayTimeDuration("-P3DT8H2M1.03S")) eq -1.03</test-case>
+		<test-case description="Simple test invoking minutes-from-seconds() on an negative xs:duration."
+			type="ebv">seconds-from-duration(xs:duration("-P3Y4M8DT1H23M2.34S")) eq -2.34</test-case>
 	</test-group>
 
           <test-group name="YearFromDateTimeFunc">
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic