XQuery functions tests. @author BaseX Team, BSD License @author Christian Gruen
| 9 | * @author Christian Gruen |
| 10 | */ |
| 11 | public final class FnNotTest extends QueryTest { |
| 12 | static { |
| 13 | queries = new Object[][] { |
| 14 | { "fn-notint1args-1", booleans(false), "fn:not(xs:int('-2147483648'))" }, |
| 15 | { "fn-notint1args-2", booleans(false), "fn:not(xs:int('-1873914410'))" }, |
| 16 | { "fn-notint1args-3", booleans(false), "fn:not(xs:int('2147483647'))" }, |
| 17 | { "fn-notintg1args-1", booleans(false), |
| 18 | "fn:not(xs:integer('-999999999999999999'))" }, |
| 19 | { "fn-notintg1args-2", booleans(false), |
| 20 | "fn:not(xs:integer('830993497117024304'))" }, |
| 21 | { "fn-notintg1args-3", booleans(false), |
| 22 | "fn:not(xs:integer('999999999999999999'))" }, |
| 23 | { "fn-notdec1args-1", booleans(false), |
| 24 | "fn:not(xs:decimal('-999999999999999999'))" }, |
| 25 | { "fn-notdec1args-2", booleans(false), |
| 26 | "fn:not(xs:decimal('617375191608514839'))" }, |
| 27 | { "fn-notdec1args-3", booleans(false), |
| 28 | "fn:not(xs:decimal('999999999999999999'))" }, |
| 29 | { "fn-notdbl1args-1", booleans(false), |
| 30 | "fn:not(xs:double('-1.7976931348623157E308'))" }, |
| 31 | { "fn-notdbl1args-2", booleans(true), |
| 32 | "fn:not(xs:double('0'))" }, |
| 33 | { "fn-notdbl1args-3", booleans(false), |
| 34 | "fn:not(xs:double('1.7976931348623157E308'))" }, |
| 35 | { "fn-notflt1args-1", booleans(false), |
| 36 | "fn:not(xs:float('-3.4028235E38'))" }, |
| 37 | { "fn-notflt1args-2", booleans(true), |
| 38 | "fn:not(xs:float('0'))" }, |
| 39 | { "fn-notflt1args-3", booleans(false), |
| 40 | "fn:not(xs:float('3.4028235E38'))" }, |
| 41 | { "fn-notlng1args-1", booleans(false), |
| 42 | "fn:not(xs:long('-92233720368547758'))" }, |
| 43 | { "fn-notlng1args-2", booleans(false), |
| 44 | "fn:not(xs:long('-47175562203048468'))" }, |
| 45 | { "fn-notlng1args-3", booleans(false), |
| 46 | "fn:not(xs:long('92233720368547758'))" }, |
| 47 | { "fn-notusht1args-1", booleans(true), |
| 48 | "fn:not(xs:unsignedShort('0'))" }, |
| 49 | { "fn-notusht1args-2", booleans(false), |
| 50 | "fn:not(xs:unsignedShort('44633'))" }, |
| 51 | { "fn-notusht1args-3", booleans(false), |
| 52 | "fn:not(xs:unsignedShort('65535'))" }, |
| 53 | { "fn-notnint1args-1", booleans(false), |
| 54 | "fn:not(xs:negativeInteger('-999999999999999999'))" }, |
| 55 | { "fn-notnint1args-2", booleans(false), |
| 56 | "fn:not(xs:negativeInteger('-297014075999096793'))" }, |
| 57 | { "fn-notnint1args-3", booleans(false), |
| 58 | "fn:not(xs:negativeInteger('-1'))" }, |
| 59 | { "fn-notpint1args-1", booleans(false), |
| 60 | "fn:not(xs:positiveInteger('1'))" }, |
| 61 | { "fn-notpint1args-2", booleans(false), |
| 62 | "fn:not(xs:positiveInteger('52704602390610033'))" }, |
| 63 | { "fn-notpint1args-3", booleans(false), |
| 64 | "fn:not(xs:positiveInteger('999999999999999999'))" }, |
| 65 | { "fn-notulng1args-1", booleans(true), |
| 66 | "fn:not(xs:unsignedLong('0'))" }, |
| 67 | { "fn-notulng1args-2", booleans(false), |
| 68 | "fn:not(xs:unsignedLong('130747108607674654'))" }, |