Skip to content

Commit

Permalink
handling of minus is fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ichiban committed Jun 18, 2022
1 parent 84b096e commit 09049e9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions interpreter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,8 @@ func TestNew(t *testing.T) {
assert.NoError(t, p.QuerySolution(`catch(length(L,1.0e99), error(type_error(integer,1.0e99), _), true).`).Err())
assert.Equal(t, ErrNoSolutions, p.QuerySolution(`N is 2^52, length([], N).`).Err())
assert.NoError(t, p.QuerySolution(`catch(length([],0+0), error(type_error(integer,0+0), _), true).`).Err())
/* TODO: fix handling of minus https://github.com/ichiban/prolog/issues/210
assert.NoError(t, p.QuerySolution(`catch(length([],-_), error(type_error(integer,-_), _), true).`).Err())
assert.NoError(t, p.QuerySolution(`catch(length([a],-_), error(type_error(integer,-_), _), true).`).Err())
*/
assert.NoError(t, p.QuerySolution(`catch(length([a,b|X],X), error(resource_error(finite_memory), _), true).`).Err())
assert.NoError(t, p.QuerySolution(`catch(length(L,L), error(resource_error(finite_memory), _), true).`).Err())
assert.NoError(t, p.QuerySolution(`catch((L = [_|_], length(L,L)), error(type_error(integer,[_|_]), _), true).`).Err())
Expand Down

0 comments on commit 09049e9

Please sign in to comment.