Skip to content

Commit

Permalink
Add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
markuspf committed Aug 4, 2016
1 parent 528413b commit 0a636f8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tst/testinstall/function.tst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
gap> START_TEST("function.tst");
gap> IsKernelFunction(IsKernelFunction);
true
gap> IsKernelFunction(function(x) return 1; end);
false
gap> IsKernelFunction(5);
fail
gap> IsKernelFunction(rec( a := function() return 0; end ));
fail
gap> STOP_TEST("function.tst", 1);

0 comments on commit 0a636f8

Please sign in to comment.