Skip to content

Instantly share code, notes, and snippets.

@javierfernandes
Created August 25, 2020 22:40
Show Gist options
  • Save javierfernandes/da3f90057383c75f8c205a4fce64819c to your computer and use it in GitHub Desktop.
Save javierfernandes/da3f90057383c75f8c205a4fce64819c to your computer and use it in GitHub Desktop.
describe('x / y with x a nil value and y a number', function()
test({
rule = _.div_op(_.var_ref('x'), _.var_ref('y')),
having = { x = nil, y = 12 },
gives = __.unbound_error(nil, 'x'),
at = _.var_ref('x')
})
end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment