Skip to content

Commit

Permalink
Update test snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
jneem committed Aug 7, 2024
1 parent 36c7b47 commit c4c975d
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ expression: err
---
error: contract broken by the caller of `at`
invalid array indexing
┌─ <stdlib/std.ncl>:169:9
┌─ <stdlib/std.ncl>:167:9
169| std.contract.unstable.IndexedArrayFun 'Index
167| std.contract.unstable.IndexedArrayFun 'Index
-------------------------------------------- expected type
┌─ [INPUTS_PATH]/errors/array_at_empty_array.ncl:3:16
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ expression: err
---
error: contract broken by the caller of `at`
invalid array indexing
┌─ <stdlib/std.ncl>:169:9
┌─ <stdlib/std.ncl>:167:9
169| std.contract.unstable.IndexedArrayFun 'Index
167| std.contract.unstable.IndexedArrayFun 'Index
-------------------------------------------- expected type
┌─ [INPUTS_PATH]/errors/array_at_out_of_bound.ncl:3:16
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ expression: err
---
error: contract broken by the caller of `range`
invalid range
┌─ <stdlib/std.ncl>:795:9
┌─ <stdlib/std.ncl>:771:9
795| std.contract.unstable.RangeFun Dyn
771| std.contract.unstable.RangeFun Dyn
---------------------------------- expected type
┌─ [INPUTS_PATH]/errors/array_range_reversed_indices.ncl:3:19
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ expression: err
---
error: contract broken by the caller of `range_step`
invalid range step
┌─ <stdlib/std.ncl>:770:9
┌─ <stdlib/std.ncl>:746:9
770| std.contract.unstable.RangeFun (std.contract.unstable.RangeStep -> Dyn)
746| std.contract.unstable.RangeFun (std.contract.unstable.RangeStep -> Dyn)
----------------------------------------------------------------------- expected type
┌─ [INPUTS_PATH]/errors/array_range_step_negative_step.ncl:3:27
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ expression: err
---
error: contract broken by the caller of `map`
expected an array
┌─ <stdlib/std.ncl>:153:33
┌─ <stdlib/std.ncl>:151:33
153 │ : forall a b. (a -> b) -> Array a -> Array b
151 │ : forall a b. (a -> b) -> Array a -> Array b
------- expected type of the argument provided by the caller
┌─ [INPUTS_PATH]/errors/caller_contract_violation.ncl:3:31
Expand Down
4 changes: 2 additions & 2 deletions doc/manual/typing.md
Original file line number Diff line number Diff line change
Expand Up @@ -588,9 +588,9 @@ calling to the statically typed `std.array.filter` from dynamically typed code:
```nickel #repl
> std.array.filter (fun x => if x % 2 == 0 then x else null) [1,2,3,4,5,6]
error: contract broken by the caller of `filter`
┌─ <stdlib/std.ncl>:437:25
┌─ <stdlib/std.ncl>:433:25
437 │ : forall a. (a -> Bool) -> Array a -> Array a
433 │ : forall a. (a -> Bool) -> Array a -> Array a
│ ---- expected return type of a function provided by the caller
┌─ <repl-input-6>:1:55
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ String -> Number

```nickel
std.string.to_number "123"
=> 123
# => 123
```, ```nickel
NumberLiteral -> Dyn
```, ```nickel
Expand Down

0 comments on commit c4c975d

Please sign in to comment.