Skip to content

Commit c106ae5

Browse files
committed
lambda_test.nix: typos
1 parent dc83ff2 commit c106ae5

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

Diff for: lambda.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ rec {
162162
* Interpretation/evaluation
163163
*/
164164

165-
# α-equivalence, M{y,x} (renaming x as y in M)
165+
# α-renaming, M{y,x} (renaming x as y in M)
166166
rename = m: y: x:
167167
if m.type == "var" then m // {
168168
name = if m.name == x then y else m.name;

Diff for: lambda_test.nix

+3-9
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ let
767767
}
768768

769769
# NOTE: we're indirectly testing again L.parse below ("G"
770-
# is a shortcut calling L.parse, and assuming success)
770+
# is a shortcut calling L.parse, assuming success)
771771
{
772772
descr = ''freeVars "hello"'';
773773
fun = L.freeVars;
@@ -868,7 +868,7 @@ let
868868
expected = (G "y");
869869
}
870870
{
871-
descr = ''rename "(x y) (y z) " y x'';
871+
descr = ''rename "(x y) (y x z)" y x'';
872872
fun = L.rename;
873873
args = [(G "(x y) (y x z) ") "y" "x"];
874874
expected = (G "(y y) (y y z) ");
@@ -892,13 +892,7 @@ let
892892
expected = (G "λz. λy. y z foo bar");
893893
}
894894
{
895-
descr = ''rename "λx. λy. y z foo bar" z x'';
896-
fun = L.rename;
897-
args = [(G "λx. λy. y z foo bar") "z" "x"];
898-
expected = (G "λz. λy. y z foo bar");
899-
}
900-
{
901-
descr = ''rename "λx. λy. y z foo bar" z x'';
895+
descr = ''rename "λx. λy. y z foo bar" foo y'';
902896
fun = L.rename;
903897
args = [(G "λx. λy. y z foo bar") "foo" "y"];
904898
expected = (G "λx. λfoo. foo z foo bar");

0 commit comments

Comments
 (0)