Compare commits

..

2 Commits

Author SHA1 Message Date
Charles Iliya Krempeaux 97326339f8 initial commits 2023-11-06 04:26:38 -08:00
Charles Iliya Krempeaux 6328092055 initial commits 2023-11-05 10:17:00 -08:00
2 changed files with 8 additions and 0 deletions

View File

@ -10,6 +10,10 @@ const (
ErrUnexpectedEndOfFile = erorr.Error("rfc8259: unexpected end-of-file")
)
func ErrInternalError(msg string) error {
return erorr.Errorf("rfc8259: JSON parser had an unexpected internal-error — %s", msg)
}
func ErrProblemReadingRune(err error) error {
return erorr.Errorf("rfc8259: JSON parser had a problem — problem reading rune: %w", err)
}

View File

@ -21,6 +21,10 @@ func TestParse_success(t *testing.T) {
Value: []byte("0"),
Expected: rfc8259naturalnumber.Zero(),
},
{
Value: []byte("-0"),
Expected: rfc8259naturalnumber.Something("-0"),
},