From 5abc0628058a318782c46614d943c034711845c6 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Thu, 6 Feb 2020 18:09:02 +0000 Subject: Add forgotten test outputs --- dhall/tests/type-errors/unit/CompletionMissingRequiredField.txt | 7 +++++++ dhall/tests/type-errors/unit/CompletionWithWrongDefaultType.txt | 7 +++++++ dhall/tests/type-errors/unit/CompletionWithWrongFieldName.txt | 7 +++++++ dhall/tests/type-errors/unit/CompletionWithWrongOverridenType.txt | 7 +++++++ .../type-errors/unit/RecordProjectionByTypeFieldTypeMismatch.txt | 6 ++++++ dhall/tests/type-errors/unit/RecordProjectionByTypeNotPresent.txt | 6 ++++++ 6 files changed, 40 insertions(+) create mode 100644 dhall/tests/type-errors/unit/CompletionMissingRequiredField.txt create mode 100644 dhall/tests/type-errors/unit/CompletionWithWrongDefaultType.txt create mode 100644 dhall/tests/type-errors/unit/CompletionWithWrongFieldName.txt create mode 100644 dhall/tests/type-errors/unit/CompletionWithWrongOverridenType.txt create mode 100644 dhall/tests/type-errors/unit/RecordProjectionByTypeFieldTypeMismatch.txt create mode 100644 dhall/tests/type-errors/unit/RecordProjectionByTypeNotPresent.txt (limited to 'dhall') diff --git a/dhall/tests/type-errors/unit/CompletionMissingRequiredField.txt b/dhall/tests/type-errors/unit/CompletionMissingRequiredField.txt new file mode 100644 index 0000000..d0a9a01 --- /dev/null +++ b/dhall/tests/type-errors/unit/CompletionMissingRequiredField.txt @@ -0,0 +1,7 @@ +Type error: error: annot mismatch: (Example.default ⫽ {=} : { id : Optional Natural }) : { id : Optional Natural, name : Text } + --> :1:4 + | +... +6 | in Example::{=} + | ^^^^^^^^^^^^ annot mismatch: (Example.default ⫽ {=} : { id : Optional Natural }) : { id : Optional Natural, name : Text } + | diff --git a/dhall/tests/type-errors/unit/CompletionWithWrongDefaultType.txt b/dhall/tests/type-errors/unit/CompletionWithWrongDefaultType.txt new file mode 100644 index 0000000..d4639e9 --- /dev/null +++ b/dhall/tests/type-errors/unit/CompletionWithWrongDefaultType.txt @@ -0,0 +1,7 @@ +Type error: error: annot mismatch: (Example.default ⫽ {=} : { id : Optional Natural, name : Bool }) : { id : Optional Natural, name : Text } + --> :1:4 + | +... +6 | in Example::{=} + | ^^^^^^^^^^^^ annot mismatch: (Example.default ⫽ {=} : { id : Optional Natural, name : Bool }) : { id : Optional Natural, name : Text } + | diff --git a/dhall/tests/type-errors/unit/CompletionWithWrongFieldName.txt b/dhall/tests/type-errors/unit/CompletionWithWrongFieldName.txt new file mode 100644 index 0000000..0839742 --- /dev/null +++ b/dhall/tests/type-errors/unit/CompletionWithWrongFieldName.txt @@ -0,0 +1,7 @@ +Type error: error: annot mismatch: (Example.default ⫽ { nam = "John Doe" } : { id : Optional Natural, nam : Text, name : Text }) : { id : Optional Natural, name : Text } + --> :1:4 + | +... +6 | in Example::{ nam = "John Doe" } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ annot mismatch: (Example.default ⫽ { nam = "John Doe" } : { id : Optional Natural, nam : Text, name : Text }) : { id : Optional Natural, name : Text } + | diff --git a/dhall/tests/type-errors/unit/CompletionWithWrongOverridenType.txt b/dhall/tests/type-errors/unit/CompletionWithWrongOverridenType.txt new file mode 100644 index 0000000..7edef95 --- /dev/null +++ b/dhall/tests/type-errors/unit/CompletionWithWrongOverridenType.txt @@ -0,0 +1,7 @@ +Type error: error: annot mismatch: (Example.default ⫽ { name = True } : { id : Optional Natural, name : Bool }) : { id : Optional Natural, name : Text } + --> :1:4 + | +... +6 | in Example::{ name = True } + | ^^^^^^^^^^^^^^^^^^^^^^^^ annot mismatch: (Example.default ⫽ { name = True } : { id : Optional Natural, name : Bool }) : { id : Optional Natural, name : Text } + | diff --git a/dhall/tests/type-errors/unit/RecordProjectionByTypeFieldTypeMismatch.txt b/dhall/tests/type-errors/unit/RecordProjectionByTypeFieldTypeMismatch.txt new file mode 100644 index 0000000..d624075 --- /dev/null +++ b/dhall/tests/type-errors/unit/RecordProjectionByTypeFieldTypeMismatch.txt @@ -0,0 +1,6 @@ +Type error: error: ProjectionWrongType + --> :1:0 + | +1 | { y = {=} }.( {y : Natural} ) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ProjectionWrongType + | diff --git a/dhall/tests/type-errors/unit/RecordProjectionByTypeNotPresent.txt b/dhall/tests/type-errors/unit/RecordProjectionByTypeNotPresent.txt new file mode 100644 index 0000000..c22c2c4 --- /dev/null +++ b/dhall/tests/type-errors/unit/RecordProjectionByTypeNotPresent.txt @@ -0,0 +1,6 @@ +Type error: error: ProjectionMissingEntry + --> :1:0 + | +1 | { y = {=} }.( {x : Natural} ) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ProjectionMissingEntry + | -- cgit v1.2.3