forked from dafny-lang/dafny
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fresh binaries, fix test (take my own nag test’s suggestion :)
- Loading branch information
Showing
12 changed files
with
4 additions
and
41 deletions.
There are no files selected for viewing
Binary file modified
BIN
+0 Bytes
(100%)
Source/DafnyStandardLibraries/binaries/DafnyStandardLibraries-arithmetic.doo
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Source/DafnyStandardLibraries/binaries/DafnyStandardLibraries-cs.doo
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Source/DafnyStandardLibraries/binaries/DafnyStandardLibraries-go.doo
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Source/DafnyStandardLibraries/binaries/DafnyStandardLibraries-java.doo
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Source/DafnyStandardLibraries/binaries/DafnyStandardLibraries-js.doo
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Source/DafnyStandardLibraries/binaries/DafnyStandardLibraries-notarget.doo
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Source/DafnyStandardLibraries/binaries/DafnyStandardLibraries-py.doo
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Source/DafnyStandardLibraries/binaries/DafnyStandardLibraries.doo
Binary file not shown.
23 changes: 2 additions & 21 deletions
23
.../IntegrationTests/TestFiles/LitTests/LitTest/stdlibs/StandardLibraries_TargetSpecific.dfy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,10 @@ | ||
// This test just asserts what happens when you try to use a library | ||
// that isn't available for all backends. | ||
// that isn't available for all backends (see .check files). | ||
// Full testing of such libraries is handled in the DafnyStandardLibraries | ||
// project rather than here. | ||
|
||
// Valid: | ||
|
||
// RUN: %verify --standard-libraries:true "%s" > "%t" | ||
// RUN: %run --target:cs --standard-libraries:true "%s" >> "%t" | ||
// RUN: %run --target:java --standard-libraries:true "%s" >> "%t" | ||
// RUN: %run --target:go --standard-libraries:true "%s" >> "%t" | ||
// RUN: %run --target:js --standard-libraries:true "%s" >> "%t" | ||
// RUN: %run --target:py --standard-libraries:true "%s" >> "%t" | ||
|
||
// Invalid: | ||
|
||
// RUN: %exits-with 2 %run --target:cpp --standard-libraries:true "%s" >> "%t" | ||
// RUN: %exits-with 2 %run --target:rs --standard-libraries:true "%s" >> "%t" | ||
|
||
// RUN: %diff "%s.expect" "%t" | ||
// RUN: %testDafnyForEachCompiler "%s" -- --standard-libraries:true | ||
|
||
module UsesFileIO { | ||
|
||
import DafnyStdLibs.FileIO | ||
|
||
method Main() { | ||
var thisFile :- expect FileIO.ReadBytesFromFile("StandardLibraries_TargetSpecific.dfy"); | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
...onTests/TestFiles/LitTests/LitTest/stdlibs/StandardLibraries_TargetSpecific.dfy.cpp.check
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CHECK-L: StandardLibraries_TargetSpecific.dfy(9,22): Error: module FileIO does not exist (position 1 in path DafnyStdLibs.FileIO) |
20 changes: 0 additions & 20 deletions
20
...ationTests/TestFiles/LitTests/LitTest/stdlibs/StandardLibraries_TargetSpecific.dfy.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +0,0 @@ | ||
|
||
Dafny program verifier finished with 1 verified, 0 errors | ||
|
||
Dafny program verifier finished with 1 verified, 0 errors | ||
|
||
Dafny program verifier finished with 1 verified, 0 errors | ||
|
||
Dafny program verifier finished with 1 verified, 0 errors | ||
|
||
Dafny program verifier finished with 1 verified, 0 errors | ||
|
||
Dafny program verifier finished with 1 verified, 0 errors | ||
StandardLibraries_TargetSpecific.dfy(24,22): Error: module FileIO does not exist (position 1 in path DafnyStdLibs.FileIO) | ||
StandardLibraries_TargetSpecific.dfy(27,34): Error: unresolved identifier: ReadBytesFromFile | ||
StandardLibraries_TargetSpecific.dfy(27,17): Error: The type of the first expression to the right of ':-' could not be determined to be a failure type (got '?') | ||
3 resolution/type errors detected in the_program | ||
StandardLibraries_TargetSpecific.dfy(24,22): Error: module FileIO does not exist (position 1 in path DafnyStdLibs.FileIO) | ||
StandardLibraries_TargetSpecific.dfy(27,34): Error: unresolved identifier: ReadBytesFromFile | ||
StandardLibraries_TargetSpecific.dfy(27,17): Error: The type of the first expression to the right of ':-' could not be determined to be a failure type (got '?') | ||
3 resolution/type errors detected in the_program | ||
1 change: 1 addition & 0 deletions
1
...ionTests/TestFiles/LitTests/LitTest/stdlibs/StandardLibraries_TargetSpecific.dfy.rs.check
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CHECK-L: StandardLibraries_TargetSpecific.dfy(9,22): Error: module FileIO does not exist (position 1 in path DafnyStdLibs.FileIO) |