Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9718d16

Browse files
committed
fix sort tests
we can only sort by int for now, not table elements, not strings
1 parent 3979057 commit 9718d16

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎test/tables/filter.pn‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
("cheese"=0, "bread"=1, "mayo"=2) filter (k,v): v > 0. map(k): k.
2-
#=> (bread, mayo)
1+
("cheese"=0, "bread"=1, "mayo"=2) filter (k,v): v > 0. map(k,v): v. sort(true)
2+
#=> (1, 2)

‎test/tables/map.pn‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
(0=1,1=2,3=4) map(k,v): (k+1,v+2). sort #=> ((1, 3), (4, 6), (2, 4))
1+
(0=1,1=2,3=4) map(k,v): v+2. sort(true) #=> (3, 4, 6)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /