Skip to content

Type error "evaluable": non-compliant exception #25

Open
@pmoura

Description

@pmoura

Several standard compliance tests fail due to non-compliant exception for "evaluable" type errors. For example:

!     lgt_acos_1_05: failure 
!       test goal throws the wrong error:
!         expected error(type_error(evaluable,foo/0),A)
!         but got  error(type_error(evaluable,acos(foo)),'arithmetic:is'/2-2)
!       in file /Users/pmoura/logtalk/tests/prolog/functions/acos_1/tests.lgt between lines 54-58

This may be an easy fix. In the place where the exception is thrown, replace the second argument in the type_error/2 term by the non-evaluable term indicator.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions