Skip to content

Instantly share code, notes, and snippets.

@zoffixznet
Created November 19, 2016 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zoffixznet/cfc354cd8a8c5bd3c34da35b0d4e1d23 to your computer and use it in GitHub Desktop.
Save zoffixznet/cfc354cd8a8c5bd3c34da35b0d4e1d23 to your computer and use it in GitHub Desktop.
cpan@perlbuild2/tmp/release/nqp (master)$ prove -r -v --exec ./nqp-j t/nqp/059-nqpop.t
t/nqp/059-nqpop.t ..
1..281
ok 1 - nqp::add_i
ok 2 - nqp::sub_i
ok 3 - nqp::mul_i
ok 4 - nqp::div_i
ok 5 - nqp::mod_i
ok 6 - nqp::pow_i
ok 7 - nqp::gcd_i
ok 8 - nqp::lcm_i
ok 9 - nqp::bitshiftl_i
ok 10 - nqp::bitshiftl_i
ok 11 - nqp::bitshiftr_i
ok 12 - nqp::bitshiftr_i
ok 13 - nqp::bitshiftr_i
ok 14 - nqp::bitshiftr_i
ok 15 - nqp::bitand_i
ok 16 - nqp::bitor_i
ok 17 - nqp::bitxor_i
ok 18 - nqp::bitneg_i
ok 19 - nqp::add_n
ok 20 - nqp::sub_n
ok 21 - nqp::mul_n
ok 22 - nqp::div_n
ok 23 - nqp::chars
ok 24 - nqp::concat
ok 25 - nqp::join
ok 26 - nqp::index found
ok 27 - nqp::index not found
ok 28 - nqp::index with third argument
ok 29 - nqp::index with third argument not found
ok 30 - nqp::index with third argument, first match (1)
ok 31 - nqp::index with third argument, first match (2)
ok 32 - nqp::index with third argument, second match
ok 33 - nqp::index with third argument, third match
ok 34 - nqp::index with empty match returns 0
ok 35 - nqp::index with empty match at offset returns offset
ok 36 - nqp::index with empty match at end returns length
ok 37 - nqp::index with empty match at offset outside string returns -1
ok 38 - nqp::rindex found
ok 39 - nqp::rindex not found
ok 40 - nqp::rindex with third argument
ok 41 - nqp::rindex with third argument not found
ok 42 - nqp::rindex with third argument, first match (1)
ok 43 - nqp::rindex with third argument, first match (2)
ok 44 - nqp::rindex with third argument, second match
ok 45 - nqp::rindex with third argument, third match
ok 46 - nqp::rindex with empty match returns length
ok 47 - nqp::rindex with empty match at offset returns offset
ok 48 - nqp::rindex with empty match at end returns length
ok 49 - nqp::rindex with empty match at offset outside string returns -1
ok 50 - nqp::chr
ok 51 - nqp::ord
ok 52 - 2 argument nqp::ord
ok 53 - nqp::ordat
ok 54 - nqp::lc
ok 55 - nqp::uc
ok 56 - nqp::flip
ok 57 - nqp::split
ok 58 - nqp::split zero length string
ok 59 - nqp::split no match
ok 60 - nqp::split zero length delimiter
ok 61 - nqp::split delimiter at ends
ok 62 - nqp::split("", ...)
ok 63 - nqp::cmp_i
ok 64 - nqp::cmp_i
ok 65 - nqp::cmp_i
ok 66 - nqp::cmp_n
ok 67 - nqp::cmp_n
ok 68 - nqp::cmp_n
ok 69 - nqp::cmp_s
ok 70 - nqp::cmp_s
ok 71 - nqp::cmp_s
ok 72 - nqp::elems
ok 73 - nqp::if(false)
ok 74 - nqp::if(true)
ok 75 - nqp::unless(false)
ok 76 - nqp::unless(true)
ok 77 - nqp::if shortcircuit
ok 78 - nqp::if shortcircuit
ok 79 - nqp::pow_n
ok 80 - nqp::neg_i
ok 81 - nqp::neg_i
ok 82 - nqp::neg_n
ok 83 - nqp::neg_n
ok 84 - nqp::abs_i
ok 85 - nqp::abs_i
ok 86 - nqp::abs_n
ok 87 - nqp::abs_n
ok 88 - nqp::ceil_n
ok 89 - nqp::ceil_n
ok 90 - nqp::ceil_n
ok 91 - nqp::ceil_n
ok 92 - nqp::floor_n
ok 93 - nqp::floor_n
ok 94 - nqp::floor_n
ok 95 - nqp::floor_n
ok 96 - nqp::sqrt_n
ok 97 - nqp::substr
ok 98 - nqp::substr
ok 99 - nqp::substr
ok 100 - nqp::substr
ok 101 - nqp::substr
ok 102 - nqp::substr
ok 103 - nqp::x
ok 104 - nqp::x
ok 105 - nqp::not_i
ok 106 - nqp::not_i
ok 107 - nqp::not_i
ok 108 - nqp::escape
ok 109 - nqp::escape works with literal
ok 110 - nqp::isnull/nqp::null
ok 111 - !nqp::isnull(string)
ok 112 - nqp::isnull(number)
ok 113 - nqp::istrue
ok 114 - nqp::istrue
ok 115 - nqp::istrue
ok 116 - nqp::istrue
ok 117 - nqp::istrue
ok 118 - nqp::istrue
ok 119 - nqp::istrue
ok 120 - nqp::istrue on nqp::null
ok 121 - nqp::istrue on empty list
ok 122 - nqp::istrue on nonempty list
ok 123 - nqp::elems
ok 124 - nqp::atpos
ok 125 - nqp::atpos
ok 126 - nqp::atpos with -1 index
ok 127 - nqp::atpos with -2 index
ok 128 - nqp::push
ok 129 - nqp::shift
ok 130 - nqp::pop
ok 131 - nqp::iterator
ok 132 - nqp::iterator
ok 133 - nqp::iterator
ok 134 - iterator doesn't modify list
ok 135 - nqp::islist works
ok 136 - nqp::unshift
ok 137 - nqp::unshift adds 1 element
ok 138 - nqp::unshift the correct element
ok 139 - nqp::existskey with existing key
ok 140 - nqp::existskey with missing key
ok 141 - nqp::deletekey with missing key doesn't remove anything
ok 142 - nqp::deletekey deletes correct key
ok 143 - existspos with missing pos
ok 144 - existspos with existing pos
ok 145 - existspos with missing pos
ok 146 - existspos with existing pos
ok 147 - existspos with missing pos
ok 148 - existspos with absurd values
ok 149 - existspos with still existing pos
ok 150 - splice works as a return value
ok 151 - test for isnull_s with a normal string
ok 152 - test for isnull_s with a null_s
ok 153 - null_s survives nqp::decont
ok 154 - time_n is not zero
ok 155 - time_i is not zero
ok 156 - time_n >= time_i
ok 157 - eqat with needle argument that matches at 0
ok 158 - eqat with needle argument that matches at 1
ok 159 - eqat with needle argument that matches
ok 160 - eqat with a negative offset argument
ok 161 - eqat with a gigantic offset argument
ok 162 - eqat with needle argument longer than haystack
ok 163 - splice
ok 164 - splice
ok 165 - nqp::setelems reduces list length properly
ok 166 - nqp::setelems return value
ok 167 - isge_i =
ok 168 - isge_i <
ok 169 - isge_i >
ok 170 - isge_i =
ok 171 - isge_i <
ok 172 - isge_i >
ok 173 - islt_i =
ok 174 - islt_i <
ok 175 - islt_i >
ok 176 - isle_i =
ok 177 - isle_i <
ok 178 - isle_i >
ok 179 - isne_i =
ok 180 - isne_i <
ok 181 - isne_i >
ok 182 - iseq_i =
ok 183 - iseq_i <
ok 184 - iseq_i >
ok 185 - nqp::isle
ok 186 - nqp::isle
ok 187 - nqp::isle
ok 188 - nqp::isle - both string equal
ok 189 - nqp::isle left string greater
ok 190 - nqp::isge
ok 191 - nqp::isge
ok 192 - nqp::isge
ok 193 - nqp::isge - both string equal
ok 194 - nqp::isge left string greater
ok 195 - nqp::isle
ok 196 - nqp::isle
ok 197 - nqp::isle
ok 198 - nqp::isle - both string equal
ok 199 - nqp::isle left string greater
ok 200 - nqp::isge
ok 201 - nqp::isge
ok 202 - nqp::isge
ok 203 - nqp::isge - both string equal
ok 204 - nqp::isge left string greater
ok 205 - != between floating point numbers (not equal)
ok 206 - != between floating point numbers (equal)
ok 207 - % test
ok 208 - % test
ok 209 - % test
ok 210 - % test
ok 211 - % test
ok 212 - % with integer arguments
ok 213 - sha1
ok 214 - nqp::sha1 null bytes
ok 215 - correct return value for bindcomp
ok 216 - nqp::getcomp
ok 217 - nqp::getcomp for a missing language returns null
ok 218 - nqp::elems/nqp::push_i
ok 219 - nqp::pop_i
ok 220 - nqp::pop_i reduces the number of elements correctly
ok 221 - nqp::islist(nqp::list_i())
ok 222 - shift_i
ok 223 - nqp::shit_i reduces the number of elements correctly
ok 224 - unshift_i
ok 225 - nqp::unshift_i increases the number of elements correctly
ok 226 - the element get placed at the start
ok 227 - atpos_i
ok 228 - atpos_i with negative index
ok 229 - nqp::atpos_i ouside of array
ok 230 - bindpos_i works
ok 231 - nqp::elems/nqp::push_s
ok 232 - nqp::pop_s
ok 233 - nqp::pop_s reduces the number of elements correctly
ok 234 - nqp::islist(nqp::list_s())
ok 235 - shift_s
ok 236 - nqp::shit_s reduces the number of elements correctly
ok 237 - unshift_s
ok 238 - nqp::unshift_s increases the number of elements correctly
ok 239 - the element get placed at the start
ok 240 - nqp::bindpos_s
ok 241 - nqp::atpos_s
ok 242 - nqp::atpos_s with negative index
ok 243 - nqp::atpos_s with element outside of array
ok 244 - nqp::elems/nqp::push_n
ok 245 - nqp::pop_n
ok 246 - nqp::pop_n reduces the number of elements correctly
ok 247 - nqp::islist(nqp::list_n())
ok 248 - atpos_n
ok 249 - bindpos_n works
ok 250 - nqp::atpos_n with negative index
ok 251 - atpos_n with element outside of the array
ok 252 - nqp::bindpos
ok 253 - nqp::isnanorinf - nan
ok 254 - nqp::isnanorinf - inf
ok 255 - nqp::isnanorinf - inf
ok 256 - nqp::isnanorinf - normal number
ok 257 - nqp::inf() equals itself
ok 258 - nqp::nan() doesn't equal itself
ok 259 - nqp::neginf() is negative
ok 260 - nqp::inf() is positive
ok 261 - nqp::neginf() doesn't change after adding or substracting
ok 262 - nqp::neginf() doesn't change after adding or substracting
ok 263 - nqp::neginf() is negated nqp::inf()
ok 264 - generating number before calling srand
ok 265 - the generated number is in the wanted range
ok 266 - after calling srand the first generated number is the same
ok 267 - after calling srand the second generated number is the same
ok 268 - nqp::replace
ok 269 - nqp::bitand_s
ok 270 - nqp::bitor_s
ok 271 - nqp::bitxor_s
ok 272 - nqp::unbox_s on a string
#comment from say
#comment from print
ok 273 - nqp::say returns correct value
ok 274 - nqp::say returns correct value
ok 275 - nqp::indexingoptimized result is equal to it's argument
ok 276 - nqp::indexingoptimized returns a string
ok 277
java.lang.NullPointerException
in <mainline> (t/nqp/059-nqpop.t:456)
in eval (gen/jvm/stage2/NQPHLL.nqp:1119)
in evalfiles (gen/jvm/stage2/NQPHLL.nqp:1322)
in command_eval (gen/jvm/stage2/NQPHLL.nqp:1216)
in command_line (gen/jvm/stage2/NQPHLL.nqp:1190)
in MAIN (gen/jvm/stage2/NQP.nqp:4058)
in <mainline> (gen/jvm/stage2/NQP.nqp:4054)
in (gen/jvm/stage2/NQP.nqp)
Dubious, test returned 1 (wstat 256, 0x100)
Failed 4/281 subtests
Test Summary Report
-------------------
t/nqp/059-nqpop.t (Wstat: 256 Tests: 277 Failed: 0)
Non-zero exit status: 1
Parse errors: Bad plan. You planned 281 tests but ran 277.
Files=1, Tests=277, 4 wallclock secs ( 0.03 usr 0.01 sys + 15.90 cusr 0.49 csys = 16.43 CPU)
Result: FAIL
cpan@perlbuild2/tmp/release/nqp (master)$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment