17 lines
381 B
Text
17 lines
381 B
Text
go =>
|
|
Tests = [
|
|
[[1,2,3], [1,2,3]],
|
|
[[1,2,3], [1,2,3,4]],
|
|
[[1,2,2], [1,2,3]],
|
|
[[1,2,4], [1,2,3]],
|
|
[1..10 , 1..8],
|
|
[[] , []],
|
|
[[] , [1]],
|
|
[[1] , [] ],
|
|
[[-1,2,3,6,5],[-1,2,3,5,6]],
|
|
[[-1,2,3,-5,6],[-1,2,3,-6,5]]
|
|
],
|
|
foreach([L1,L2] in Tests)
|
|
printf("%w @< %w: %w\n",L1,L2,cond(L1 @< L2,true,false))
|
|
end,
|
|
nl.
|