File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -358,13 +358,18 @@ def test_asset_comparison():
358
358
assert result == Asset .from_primitive ({b"Token1" : 2 , b"Token2" : 5 })
359
359
360
360
assert a == a
361
-
361
+ assert a < b
362
362
assert a <= b
363
363
assert not b <= a
364
+ assert b > a
365
+ assert b >= a
364
366
assert a != b
365
367
368
+ assert a < c
366
369
assert a <= c
367
370
assert not c <= a
371
+ assert c > a
372
+ assert c >= a
368
373
assert a != c
369
374
370
375
assert not any ([a == d , a <= d , d <= a ])
@@ -401,10 +406,15 @@ def test_multi_asset_comparison():
401
406
402
407
assert a != b
403
408
assert a <= b
409
+ assert a < c
410
+ assert b > a
411
+ assert b >= a
404
412
assert not b <= a
405
413
406
414
assert a != c
407
415
assert a <= c
416
+ assert c > a
417
+ assert c >= a
408
418
assert not c <= a
409
419
410
420
assert a != d
@@ -452,12 +462,20 @@ def test_values():
452
462
},
453
463
]
454
464
)
465
+ e = Value .from_primitive ([1000 ])
466
+ d = 1000
467
+ assert e >= d
455
468
456
469
assert a != b
457
470
assert a <= b
471
+ assert a < b
472
+ assert b > a
473
+ assert b >= a
458
474
assert not b <= a
459
475
460
476
assert a <= c
477
+ assert c > a
478
+ assert c >= a
461
479
assert not c <= a
462
480
463
481
assert b <= c
You can’t perform that action at this time.
0 commit comments