github.com/solo-io/cue@v0.4.7/cue/testdata/lists/021_list_equality.txtar (about) 1 # DO NOT EDIT; generated by go run testdata/gen.go 2 # 3 #name: list equality 4 #evalPartial 5 -- in.cue -- 6 eq0: [] == [] 7 eq1: [...] == [] 8 eq2: [] == [...] 9 eq3: [...] == [...] 10 11 eq4: [1] == [1] 12 eq5: [1, ...] == [1] 13 eq6: [1] == [1, ...] 14 eq7: [1, ...] == [1, ...] 15 16 eq8: [1, 2] == [1, 2] 17 eq9: [1, 2, ...] == [1, 2] 18 eq10: [1, 2] == [1, 2, ...] 19 eq11: [1, 2, ...] == [1, 2, ...] 20 21 ne0: [] != [] 22 ne1: [...] != [] 23 ne2: [] != [...] 24 ne3: [...] != [...] 25 26 ne4: [1] != [1] 27 ne5: [1, ...] != [1] 28 ne6: [1] != [1, ...] 29 ne7: [1, ...] != [1, ...] 30 31 ne8: [1, 2] != [1, 2] 32 ne9: [1, 2, ...] != [1, 2] 33 ne10: [1, 2] != [1, 2, ...] 34 ne11: [1, 2, ...] != [1, 2, ...] 35 36 feq0: [] == [1] 37 feq1: [...] == [1] 38 feq2: [] == [1, ...] 39 feq3: [...] == [1, ...] 40 41 feq4: [1] == [] 42 feq5: [1, ...] == [] 43 feq6: [1] == [...] 44 feq7: [1, ...] == [...] 45 46 feq8: [1, 2] == [1] 47 feq9: [1, ...] == [1, 2] 48 feq10: [1, 2] == [1, ...] 49 feq11: [1, ...] == [1, 2, ...] 50 51 fne0: [] != [1] 52 fne1: [...] != [1] 53 fne2: [] != [1, ...] 54 fne3: [1, ...] != [1, ...] 55 56 fne4: [1] != [] 57 fne5: [1, ...] != [] 58 fne6: [1] != [...] 59 fne7: [1, ...] != [...] 60 61 fne8: [1, 2] != [1] 62 fne9: [1, ...] != [1, 2] 63 fne10: [1, 2] != [1, ...] 64 fne11: [1, ...] != [1, 2, ...] 65 -- out/def -- 66 eq0: true 67 eq1: true 68 eq2: true 69 eq3: true 70 eq4: true 71 eq5: true 72 eq6: true 73 eq7: true 74 eq8: true 75 eq9: true 76 eq10: true 77 eq11: true 78 ne0: true 79 ne1: true 80 ne2: true 81 ne3: true 82 ne4: false 83 ne5: false 84 ne6: false 85 ne7: false 86 ne8: false 87 ne9: false 88 ne10: false 89 ne11: false 90 feq0: false 91 feq1: false 92 feq2: false 93 feq3: false 94 feq4: false 95 feq5: false 96 feq6: false 97 feq7: false 98 feq8: false 99 feq9: false 100 feq10: false 101 feq11: false 102 fne0: false 103 fne1: false 104 fne2: false 105 fne3: false 106 fne4: false 107 fne5: false 108 fne6: false 109 fne7: false 110 fne8: false 111 fne9: false 112 fne10: false 113 fne11: false 114 -- out/export -- 115 eq0: true 116 eq1: true 117 eq2: true 118 eq3: true 119 eq4: true 120 eq5: true 121 eq6: true 122 eq7: true 123 eq8: true 124 eq9: true 125 eq10: true 126 eq11: true 127 ne0: true 128 ne1: true 129 ne2: true 130 ne3: true 131 ne4: false 132 ne5: false 133 ne6: false 134 ne7: false 135 ne8: false 136 ne9: false 137 ne10: false 138 ne11: false 139 feq0: false 140 feq1: false 141 feq2: false 142 feq3: false 143 feq4: false 144 feq5: false 145 feq6: false 146 feq7: false 147 feq8: false 148 feq9: false 149 feq10: false 150 feq11: false 151 fne0: false 152 fne1: false 153 fne2: false 154 fne3: false 155 fne4: false 156 fne5: false 157 fne6: false 158 fne7: false 159 fne8: false 160 fne9: false 161 fne10: false 162 fne11: false 163 -- out/yaml -- 164 eq0: true 165 eq1: true 166 eq2: true 167 eq3: true 168 eq4: true 169 eq5: true 170 eq6: true 171 eq7: true 172 eq8: true 173 eq9: true 174 eq10: true 175 eq11: true 176 ne0: true 177 ne1: true 178 ne2: true 179 ne3: true 180 ne4: false 181 ne5: false 182 ne6: false 183 ne7: false 184 ne8: false 185 ne9: false 186 ne10: false 187 ne11: false 188 feq0: false 189 feq1: false 190 feq2: false 191 feq3: false 192 feq4: false 193 feq5: false 194 feq6: false 195 feq7: false 196 feq8: false 197 feq9: false 198 feq10: false 199 feq11: false 200 fne0: false 201 fne1: false 202 fne2: false 203 fne3: false 204 fne4: false 205 fne5: false 206 fne6: false 207 fne7: false 208 fne8: false 209 fne9: false 210 fne10: false 211 fne11: false 212 -- out/json -- 213 {"eq0":true,"eq1":true,"eq2":true,"eq3":true,"eq4":true,"eq5":true,"eq6":true,"eq7":true,"eq8":true,"eq9":true,"eq10":true,"eq11":true,"ne0":true,"ne1":true,"ne2":true,"ne3":true,"ne4":false,"ne5":false,"ne6":false,"ne7":false,"ne8":false,"ne9":false,"ne10":false,"ne11":false,"feq0":false,"feq1":false,"feq2":false,"feq3":false,"feq4":false,"feq5":false,"feq6":false,"feq7":false,"feq8":false,"feq9":false,"feq10":false,"feq11":false,"fne0":false,"fne1":false,"fne2":false,"fne3":false,"fne4":false,"fne5":false,"fne6":false,"fne7":false,"fne8":false,"fne9":false,"fne10":false,"fne11":false} 214 -- out/legacy-debug -- 215 <0>{eq0: true, eq1: true, eq2: true, eq3: true, eq4: true, eq5: true, eq6: true, eq7: true, eq8: true, eq9: true, eq10: true, eq11: true, ne0: true, ne1: true, ne2: true, ne3: true, ne4: false, ne5: false, ne6: false, ne7: false, ne8: false, ne9: false, ne10: false, ne11: false, feq0: false, feq1: false, feq2: false, feq3: false, feq4: false, feq5: false, feq6: false, feq7: false, feq8: false, feq9: false, feq10: false, feq11: false, fne0: false, fne1: false, fne2: false, fne3: false, fne4: false, fne5: false, fne6: false, fne7: false, fne8: false, fne9: false, fne10: false, fne11: false} 216 -- out/compile -- 217 --- in.cue 218 { 219 eq0: ([] == []) 220 eq1: ([ 221 ..., 222 ] == []) 223 eq2: ([] == [ 224 ..., 225 ]) 226 eq3: ([ 227 ..., 228 ] == [ 229 ..., 230 ]) 231 eq4: ([ 232 1, 233 ] == [ 234 1, 235 ]) 236 eq5: ([ 237 1, 238 ..., 239 ] == [ 240 1, 241 ]) 242 eq6: ([ 243 1, 244 ] == [ 245 1, 246 ..., 247 ]) 248 eq7: ([ 249 1, 250 ..., 251 ] == [ 252 1, 253 ..., 254 ]) 255 eq8: ([ 256 1, 257 2, 258 ] == [ 259 1, 260 2, 261 ]) 262 eq9: ([ 263 1, 264 2, 265 ..., 266 ] == [ 267 1, 268 2, 269 ]) 270 eq10: ([ 271 1, 272 2, 273 ] == [ 274 1, 275 2, 276 ..., 277 ]) 278 eq11: ([ 279 1, 280 2, 281 ..., 282 ] == [ 283 1, 284 2, 285 ..., 286 ]) 287 ne0: ([] != []) 288 ne1: ([ 289 ..., 290 ] != []) 291 ne2: ([] != [ 292 ..., 293 ]) 294 ne3: ([ 295 ..., 296 ] != [ 297 ..., 298 ]) 299 ne4: ([ 300 1, 301 ] != [ 302 1, 303 ]) 304 ne5: ([ 305 1, 306 ..., 307 ] != [ 308 1, 309 ]) 310 ne6: ([ 311 1, 312 ] != [ 313 1, 314 ..., 315 ]) 316 ne7: ([ 317 1, 318 ..., 319 ] != [ 320 1, 321 ..., 322 ]) 323 ne8: ([ 324 1, 325 2, 326 ] != [ 327 1, 328 2, 329 ]) 330 ne9: ([ 331 1, 332 2, 333 ..., 334 ] != [ 335 1, 336 2, 337 ]) 338 ne10: ([ 339 1, 340 2, 341 ] != [ 342 1, 343 2, 344 ..., 345 ]) 346 ne11: ([ 347 1, 348 2, 349 ..., 350 ] != [ 351 1, 352 2, 353 ..., 354 ]) 355 feq0: ([] == [ 356 1, 357 ]) 358 feq1: ([ 359 ..., 360 ] == [ 361 1, 362 ]) 363 feq2: ([] == [ 364 1, 365 ..., 366 ]) 367 feq3: ([ 368 ..., 369 ] == [ 370 1, 371 ..., 372 ]) 373 feq4: ([ 374 1, 375 ] == []) 376 feq5: ([ 377 1, 378 ..., 379 ] == []) 380 feq6: ([ 381 1, 382 ] == [ 383 ..., 384 ]) 385 feq7: ([ 386 1, 387 ..., 388 ] == [ 389 ..., 390 ]) 391 feq8: ([ 392 1, 393 2, 394 ] == [ 395 1, 396 ]) 397 feq9: ([ 398 1, 399 ..., 400 ] == [ 401 1, 402 2, 403 ]) 404 feq10: ([ 405 1, 406 2, 407 ] == [ 408 1, 409 ..., 410 ]) 411 feq11: ([ 412 1, 413 ..., 414 ] == [ 415 1, 416 2, 417 ..., 418 ]) 419 fne0: ([] != [ 420 1, 421 ]) 422 fne1: ([ 423 ..., 424 ] != [ 425 1, 426 ]) 427 fne2: ([] != [ 428 1, 429 ..., 430 ]) 431 fne3: ([ 432 1, 433 ..., 434 ] != [ 435 1, 436 ..., 437 ]) 438 fne4: ([ 439 1, 440 ] != []) 441 fne5: ([ 442 1, 443 ..., 444 ] != []) 445 fne6: ([ 446 1, 447 ] != [ 448 ..., 449 ]) 450 fne7: ([ 451 1, 452 ..., 453 ] != [ 454 ..., 455 ]) 456 fne8: ([ 457 1, 458 2, 459 ] != [ 460 1, 461 ]) 462 fne9: ([ 463 1, 464 ..., 465 ] != [ 466 1, 467 2, 468 ]) 469 fne10: ([ 470 1, 471 2, 472 ] != [ 473 1, 474 ..., 475 ]) 476 fne11: ([ 477 1, 478 ..., 479 ] != [ 480 1, 481 2, 482 ..., 483 ]) 484 } 485 -- out/eval -- 486 (struct){ 487 eq0: (bool){ true } 488 eq1: (bool){ true } 489 eq2: (bool){ true } 490 eq3: (bool){ true } 491 eq4: (bool){ true } 492 eq5: (bool){ true } 493 eq6: (bool){ true } 494 eq7: (bool){ true } 495 eq8: (bool){ true } 496 eq9: (bool){ true } 497 eq10: (bool){ true } 498 eq11: (bool){ true } 499 ne0: (bool){ false } 500 ne1: (bool){ false } 501 ne2: (bool){ false } 502 ne3: (bool){ false } 503 ne4: (bool){ false } 504 ne5: (bool){ false } 505 ne6: (bool){ false } 506 ne7: (bool){ false } 507 ne8: (bool){ false } 508 ne9: (bool){ false } 509 ne10: (bool){ false } 510 ne11: (bool){ false } 511 feq0: (bool){ false } 512 feq1: (bool){ false } 513 feq2: (bool){ false } 514 feq3: (bool){ false } 515 feq4: (bool){ false } 516 feq5: (bool){ false } 517 feq6: (bool){ false } 518 feq7: (bool){ false } 519 feq8: (bool){ false } 520 feq9: (bool){ false } 521 feq10: (bool){ false } 522 feq11: (bool){ false } 523 fne0: (bool){ false } 524 fne1: (bool){ false } 525 fne2: (bool){ false } 526 fne3: (bool){ false } 527 fne4: (bool){ false } 528 fne5: (bool){ false } 529 fne6: (bool){ false } 530 fne7: (bool){ false } 531 fne8: (bool){ false } 532 fne9: (bool){ false } 533 fne10: (bool){ false } 534 fne11: (bool){ false } 535 }