Skip to content

Commit

Permalink
fix: Default to /unicodeChar:0 in legacy CLI as well (#3635)
Browse files Browse the repository at this point in the history
This was accidentally missed from #3623.

Mostly I just updated expect files or added `/unicodeChar:0` where the
testing coverage wasn't really relevant, but in a few cases I added
`/unicodeChar:1` variants under `Test/unicodechars` where testing both
modes was better.

<small>By submitting this pull request, I confirm that my contribution
is made under the terms of the [MIT
license](https://github.com/dafny-lang/dafny/blob/master/LICENSE.txt).</small>
  • Loading branch information
robin-aws authored Feb 27, 2023
2 parents fb88ca7 + 04162f4 commit a424583
Show file tree
Hide file tree
Showing 68 changed files with 574 additions and 153 deletions.
2 changes: 1 addition & 1 deletion Source/DafnyCore/DafnyOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ datatype with a single non-ghost constructor that has a single
RegisterLegacyUi(CommonOptionBag.Output, ParseFileInfo, "Compilation options", "out");
RegisterLegacyUi(CommonOptionBag.UnicodeCharacters, ParseBoolean, "Language feature selection", "unicodeChar", @"
0 - The char type represents any UTF-16 code unit.
1 (default) - The char type represents any Unicode scalar value.".TrimStart());
1 (default) - The char type represents any Unicode scalar value.".TrimStart(), defaultValue: true);
RegisterLegacyUi(CommonOptionBag.Plugin, ParseStringElement, "Plugins", defaultValue: new List<string>());
RegisterLegacyUi(CommonOptionBag.Prelude, ParseFileInfo, "Input configuration", "dprelude");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,7 @@ class C {
}
method test(c: C?) {
assert c == null || c.c1 != c.c2 || c.c1 != '\u1023';
assert c == null || c.c1 != c.c2 || c.c1 != '\U{1023}';
}
}".TrimStart();
var documentItem = CreateTestDocument(source);
Expand Down
2 changes: 1 addition & 1 deletion Test/allocated1/dafny0/Char.dfy
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// RUN: %exits-with 4 %dafny /verifyAllModules /allocated:1 /compile:0 /print:"%t.print" /dprint:"%t.dprint" "%s" > "%t"
// RUN: %exits-with 4 %dafny /verifyAllModules /allocated:1 /compile:0 /unicodeChar:0 /print:"%t.print" /dprint:"%t.dprint" "%s" > "%t"
// RUN: %diff "%s.expect" "%t"
include "../../dafny0/Char.dfy"
2 changes: 1 addition & 1 deletion Test/allocated1/dafny0/Strings.dfy
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// RUN: %dafny /verifyAllModules /allocated:1 /compile:3 /print:"%t.print" /dprint:"%t.dprint" "%s" > "%t"
// RUN: %dafny /verifyAllModules /allocated:1 /compile:3 /unicodeChar:0 /print:"%t.print" /dprint:"%t.dprint" "%s" > "%t"
// RUN: %diff "%s.expect" "%t"
include "../../dafny0/Strings.dfy"
2 changes: 1 addition & 1 deletion Test/allocated1/dafny0/Termination.dfy
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// RUN: %exits-with 4 %dafny /verifyAllModules /allocated:1 /compile:0 /print:"%t.print" /dprint:"%t.dprint" "%s" > "%t"
// RUN: %exits-with 4 %dafny /verifyAllModules /allocated:1 /compile:0 /unicodeChar:0 /print:"%t.print" /dprint:"%t.dprint" "%s" > "%t"
// RUN: %diff "%s.expect" "%t"
include "../../dafny0/Termination.dfy"
2 changes: 1 addition & 1 deletion Test/c++/arrays.dfy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %dafny /compile:3 /spillTargetCode:2 /compileTarget:cpp "%s" > "%t"
// RUN: %dafny /compile:3 /spillTargetCode:2 /compileTarget:cpp /unicodeChar:0 "%s" > "%t"
// RUN: %diff "%s.expect" "%t"

newtype uint32 = i:int | 0 <= i < 0x100000000
Expand Down
2 changes: 1 addition & 1 deletion Test/c++/bit-vectors.dfy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %dafny /compile:3 /spillTargetCode:2 /compileTarget:cpp "%s" > "%t"
// RUN: %dafny /compile:3 /spillTargetCode:2 /compileTarget:cpp /unicodeChar:0 "%s" > "%t"
// RUN: %diff "%s.expect" "%t"

newtype uint64 = i:int | 0 <= i < 0x10000000000000000
Expand Down
2 changes: 1 addition & 1 deletion Test/c++/class.dfy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %dafny /compile:3 /spillTargetCode:2 /compileTarget:cpp "%s" > "%t"
// RUN: %dafny /compile:3 /spillTargetCode:2 /compileTarget:cpp /unicodeChar:0 "%s" > "%t"
// RUN: %diff "%s.expect" "%t"

newtype uint32 = i:int | 0 <= i < 0x100000000
Expand Down
2 changes: 1 addition & 1 deletion Test/c++/const.dfy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %dafny /compile:3 /spillTargetCode:2 /compileTarget:cpp "%s" > "%t"
// RUN: %dafny /compile:3 /spillTargetCode:2 /compileTarget:cpp /unicodeChar:0 "%s" > "%t"
// RUN: %diff "%s.expect" "%t"

module Holder {
Expand Down
2 changes: 1 addition & 1 deletion Test/c++/datatypes.dfy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %dafny /compile:3 /spillTargetCode:2 /compileTarget:cpp "%s" > "%t"
// RUN: %dafny /compile:3 /spillTargetCode:2 /compileTarget:cpp /unicodeChar:0 "%s" > "%t"
// RUN: %diff "%s.expect" "%t"

newtype uint32 = i:int | 0 <= i < 0x100000000
Expand Down
2 changes: 1 addition & 1 deletion Test/c++/extern.dfy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %dafny /compile:3 /spillTargetCode:2 /compileTarget:cpp "%s" ExternDefs.h > "%t"
// RUN: %dafny /compile:3 /spillTargetCode:2 /compileTarget:cpp /unicodeChar:0 "%s" ExternDefs.h > "%t"
// RUN: %diff "%s.expect" "%t"

module {:extern "Extern"} Extern {
Expand Down
2 changes: 1 addition & 1 deletion Test/c++/functions.dfy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %dafny /compile:3 /spillTargetCode:2 /compileTarget:cpp "%s" ExternDefs.h > "%t"
// RUN: %dafny /compile:3 /spillTargetCode:2 /compileTarget:cpp /unicodeChar:0 "%s" ExternDefs.h > "%t"
// RUN: %diff "%s.expect" "%t"

module {:extern "Extern"} Extern {
Expand Down
2 changes: 1 addition & 1 deletion Test/c++/generic.dfy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %dafny /compile:3 /spillTargetCode:2 /compileTarget:cpp "%s" > "%t"
// RUN: %dafny /compile:3 /spillTargetCode:2 /compileTarget:cpp /unicodeChar:0 "%s" > "%t"
// RUN: %diff "%s.expect" "%t"

class Test<T> {
Expand Down
2 changes: 1 addition & 1 deletion Test/c++/hello.dfy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %dafny /compile:3 /spillTargetCode:2 /compileTarget:cpp "%s" > "%t"
// RUN: %dafny /compile:3 /spillTargetCode:2 /compileTarget:cpp /unicodeChar:0 "%s" > "%t"
// RUN: %diff "%s.expect" "%t"

method Main() {
Expand Down
2 changes: 1 addition & 1 deletion Test/c++/ints.dfy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %dafny /compile:3 /spillTargetCode:2 /compileTarget:cpp "%s" > "%t"
// RUN: %dafny /compile:3 /spillTargetCode:2 /compileTarget:cpp /unicodeChar:0 "%s" > "%t"
// RUN: %diff "%s.expect" "%t"

newtype sbyte = i:int | -0x80 <= i < 0x80
Expand Down
2 changes: 1 addition & 1 deletion Test/c++/maps.dfy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %dafny /compile:3 /spillTargetCode:2 /compileTarget:cpp "%s" > "%t"
// RUN: %dafny /compile:3 /spillTargetCode:2 /compileTarget:cpp /unicodeChar:0 "%s" > "%t"
// RUN: %diff "%s.expect" "%t"

newtype uint32 = i:int | 0 <= i < 0x100000000
Expand Down
2 changes: 1 addition & 1 deletion Test/c++/recursion.dfy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %dafny /compile:3 /spillTargetCode:2 /compileTarget:cpp "%s" > "%t"
// RUN: %dafny /compile:3 /spillTargetCode:2 /compileTarget:cpp /unicodeChar:0 "%s" > "%t"
// RUN: %diff "%s.expect" "%t"

newtype uint32 = i:int | 0 <= i < 0x100000000
Expand Down
2 changes: 1 addition & 1 deletion Test/c++/returns.dfy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %dafny /compile:3 /spillTargetCode:2 /compileTarget:cpp "%s" > "%t"
// RUN: %dafny /compile:3 /spillTargetCode:2 /compileTarget:cpp /unicodeChar:0 "%s" > "%t"
// RUN: %diff "%s.expect" "%t"

newtype uint64 = i:int | 0 <= i < 0x10000000000000000
Expand Down
2 changes: 1 addition & 1 deletion Test/c++/seqs.dfy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %dafny /compile:3 /spillTargetCode:2 /compileTarget:cpp "%s" > "%t"
// RUN: %dafny /compile:3 /spillTargetCode:2 /compileTarget:cpp /unicodeChar:0 "%s" > "%t"
// RUN: %diff "%s.expect" "%t"

newtype uint8 = i:int | 0 <= i < 0x100
Expand Down
2 changes: 1 addition & 1 deletion Test/c++/sets.dfy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %dafny /compile:3 /spillTargetCode:2 /compileTarget:cpp "%s" > "%t"
// RUN: %dafny /compile:3 /spillTargetCode:2 /compileTarget:cpp /unicodeChar:0 "%s" > "%t"
// RUN: %diff "%s.expect" "%t"

newtype uint32 = i:int | 0 <= i < 0x100000000
Expand Down
2 changes: 1 addition & 1 deletion Test/c++/tuple.dfy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %dafny /compile:3 /spillTargetCode:2 /compileTarget:cpp ExternDefs.h "%s" > "%t"
// RUN: %dafny /compile:3 /spillTargetCode:2 /compileTarget:cpp /unicodeChar:0 ExternDefs.h "%s" > "%t"
// RUN: %diff "%s.expect" "%t"

newtype uint32 = i:int | 0 <= i < 0x100000000
Expand Down
2 changes: 1 addition & 1 deletion Test/c++/while.dfy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %dafny /compile:3 /spillTargetCode:2 /compileTarget:cpp "%s" > "%t"
// RUN: %dafny /compile:3 /spillTargetCode:2 /compileTarget:cpp /unicodeChar:0 "%s" > "%t"
// RUN: %diff "%s.expect" "%t"

newtype uint32 = i:int | 0 <= i < 0x100000000
Expand Down
12 changes: 6 additions & 6 deletions Test/comp/Collections.dfy
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// RUN: %dafny /compile:0 "%s" > "%t"
// RUN: %dafny /noVerify /compile:4 /spillTargetCode:2 /compileTarget:cs "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /spillTargetCode:2 /compileTarget:js "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /spillTargetCode:2 /compileTarget:go "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /spillTargetCode:2 /compileTarget:java "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /spillTargetCode:2 /compileTarget:py "%s" >> "%t"
// RUN: %dafny /compile:0 /unicodeChar:0 "%s" > "%t"
// RUN: %dafny /noVerify /compile:4 /unicodeChar:0 /spillTargetCode:2 /compileTarget:cs "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /unicodeChar:0 /spillTargetCode:2 /compileTarget:js "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /unicodeChar:0 /spillTargetCode:2 /compileTarget:go "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /unicodeChar:0 /spillTargetCode:2 /compileTarget:java "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /unicodeChar:0 /spillTargetCode:2 /compileTarget:py "%s" >> "%t"
// RUN: %diff "%s.expect" "%t"

method Main() {
Expand Down
12 changes: 6 additions & 6 deletions Test/comp/Comprehensions.dfy
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// RUN: %dafny /compile:0 "%s" > "%t"
// RUN: %dafny /noVerify /compile:4 /spillTargetCode:2 /compileTarget:cs "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /spillTargetCode:2 /compileTarget:js "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /spillTargetCode:2 /compileTarget:go "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /spillTargetCode:2 /compileTarget:java "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /spillTargetCode:2 /compileTarget:py "%s" >> "%t"
// RUN: %dafny /compile:0 /unicodeChar:0 "%s" > "%t"
// RUN: %dafny /noVerify /compile:4 /unicodeChar:0 /spillTargetCode:2 /compileTarget:cs "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /unicodeChar:0 /spillTargetCode:2 /compileTarget:js "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /unicodeChar:0 /spillTargetCode:2 /compileTarget:go "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /unicodeChar:0 /spillTargetCode:2 /compileTarget:java "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /unicodeChar:0 /spillTargetCode:2 /compileTarget:py "%s" >> "%t"
// RUN: %diff "%s.expect" "%t"

method Main() {
Expand Down
10 changes: 5 additions & 5 deletions Test/comp/Datatype.dfy.expect
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Stream.Next
{Berry.Smultron, Berry.Jordgubb, Berry.Hallon}
CoBerry.Hjortron true true false
false
42 q hello
42 'q' hello
1701
Record.Record(58, true)
199
Expand All @@ -42,7 +42,7 @@ Stream.Next
{Berry.Smultron, Berry.Jordgubb, Berry.Hallon}
CoBerry.Hjortron true true false
false
42 q hello
42 'q' hello
1701
Record.Record(58, true)
199
Expand All @@ -66,7 +66,7 @@ Stream.Next
{Berry.Smultron, Berry.Jordgubb, Berry.Hallon}
CoBerry.Hjortron true true false
false
42 q hello
42 'q' hello
1701
Record.Record(58, true)
199
Expand All @@ -90,7 +90,7 @@ Stream.Next
{Berry.Jordgubb, Berry.Smultron, Berry.Hallon}
CoBerry.Hjortron true true false
false
42 q hello
42 'q' hello
1701
Record.Record(58, true)
199
Expand All @@ -114,7 +114,7 @@ Stream.Next
{Berry.Hallon, Berry.Smultron, Berry.Jordgubb}
CoBerry.Hjortron true true false
false
42 q hello
42 'q' hello
1701
Record.Record(58, true)
199
Expand Down
12 changes: 6 additions & 6 deletions Test/comp/ErasableTypeWrappers.dfy
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// RUN: %dafny /compile:0 "%s" > "%t"
// RUN: %dafny /noVerify /compile:4 /spillTargetCode:2 /compileTarget:cs "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /spillTargetCode:2 /compileTarget:js "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /spillTargetCode:2 /compileTarget:go "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /spillTargetCode:2 /compileTarget:java "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /spillTargetCode:2 /compileTarget:py "%s" >> "%t"
// RUN: %dafny /compile:0 /unicodeChar:0 "%s" > "%t"
// RUN: %dafny /noVerify /compile:4 /unicodeChar:0 /spillTargetCode:2 /compileTarget:cs "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /unicodeChar:0 /spillTargetCode:2 /compileTarget:js "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /unicodeChar:0 /spillTargetCode:2 /compileTarget:go "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /unicodeChar:0 /spillTargetCode:2 /compileTarget:java "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /unicodeChar:0 /spillTargetCode:2 /compileTarget:py "%s" >> "%t"
// RUN: %diff "%s.expect" "%t"

datatype SingletonRecord = SingletonRecord(u: int)
Expand Down
2 changes: 1 addition & 1 deletion Test/comp/ExternDafnyString.dfy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %dafny /compile:3 /compileTarget:java "%s" %S/Conversions.java %S/ExternDafnyString.java > "%t"
// RUN: %dafny /compile:3 /unicodeChar:0 /compileTarget:java "%s" %S/Conversions.java %S/ExternDafnyString.java > "%t"
// RUN: %diff "%s.expect" "%t"
// In this example, the extern method obtains a Java string and returns it as a Dafny string.

Expand Down
2 changes: 1 addition & 1 deletion Test/comp/ExternJavaString.dfy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %dafny /compile:3 /compileTarget:java "%s" %S/Conversions.java %S/ExternJavaString.java > "%t"
// RUN: %dafny /compile:3 /unicodeChar:0 /compileTarget:java "%s" %S/Conversions.java %S/ExternJavaString.java > "%t"
// RUN: %diff "%s.expect" "%t"
// In this example, the extern method obtains a Java string and returns it as such.
// The Dafny code converts that Java string to a Dafny string.
Expand Down
2 changes: 1 addition & 1 deletion Test/comp/GoModule.dfy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %dafny /compile:3 /spillTargetCode:2 "%s" /compileTarget:go > "%t"
// RUN: %dafny /compile:3 /unicodeChar:0 /spillTargetCode:2 "%s" /compileTarget:go > "%t"
// note: putting /compileTarget:go after "%s" overrides user-provided option
// RUN: %diff "%s.expect" "%t"

Expand Down
2 changes: 1 addition & 1 deletion Test/comp/JsModule.dfy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %dafny /compile:3 "%s" /compileTarget:js > "%t"
// RUN: %dafny /compile:3 /unicodeChar:0 "%s" /compileTarget:js > "%t"
// note: putting /compileTarget:js after "%s" overrides user-provided option
// RUN: %diff "%s.expect" "%t"

Expand Down
10 changes: 5 additions & 5 deletions Test/comp/MoreAutoInit.dfy.expect
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ Consts_Compile.Uni.Uni ++ Consts_Compile.Uni.Uni ++ Consts_Compile.Uni.Uni ++ Co
++ [Consts_Compile.Uni.Uni] ++ []
** [] ++ [] ++ []
15
0-0 0.0-0.0 false-false D-D 0
0-0 0.0-0.0 false-false 'D'-'D' 0
0-0 0-0 0-0 0-0 0-0 0-0 0-0 0-0
0-0 0-0 0-0 0-0 1 1
0.0-0.0 68.0
Expand Down Expand Up @@ -269,7 +269,7 @@ Consts_Compile.Uni.Uni ++ Consts_Compile.Uni.Uni ++ Consts_Compile.Uni.Uni ++ Co
++ [Consts_Compile.Uni.Uni] ++ []
** [] ++ [] ++ []
15
0-0 0.0-0.0 false-false D-D 0
0-0 0.0-0.0 false-false 'D'-'D' 0
0-0 0-0 0-0 0-0 0-0 0-0 0-0 0-0
0-0 0-0 0-0 0-0 1 1
0.0-0.0 68.0
Expand Down Expand Up @@ -411,7 +411,7 @@ Consts_Compile.Uni.Uni ++ Consts_Compile.Uni.Uni ++ Consts_Compile.Uni.Uni ++ Co
++ [Consts_Compile.Uni.Uni] ++ []
** [] ++ [] ++ []
15
0-0 0.0-0.0 false-false D-D 0
0-0 0.0-0.0 false-false 'D'-'D' 0
0-0 0-0 0-0 0-0 0-0 0-0 0-0 0-0
0-0 0-0 0-0 0-0 1 1
0.0-0.0 68.0
Expand Down Expand Up @@ -553,7 +553,7 @@ Consts_Compile.Uni.Uni ++ Consts_Compile.Uni.Uni ++ Consts_Compile.Uni.Uni ++ Co
++ [Consts_Compile.Uni.Uni] ++ []
** [] ++ [] ++ []
15
0-0 0.0-0.0 false-false D-D 0
0-0 0.0-0.0 false-false 'D'-'D' 0
0-0 0-0 0-0 0-0 0-0 0-0 0-0 0-0
0-0 0-0 0-0 0-0 1 1
0.0-0.0 68.0
Expand Down Expand Up @@ -695,7 +695,7 @@ Consts_Compile.Uni.Uni ++ Consts_Compile.Uni.Uni ++ Consts_Compile.Uni.Uni ++ Co
++ [Consts_Compile.Uni.Uni] ++ []
** [] ++ [] ++ []
15
0-0 0.0-0.0 false-false D-D 0
0-0 0.0-0.0 false-false 'D'-'D' 0
0-0 0-0 0-0 0-0 0-0 0-0 0-0 0-0
0-0 0-0 0-0 0-0 1 1
0.0-0.0 68.0
Expand Down
10 changes: 5 additions & 5 deletions Test/comp/Print.dfy
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// RUN: %dafny /compile:0 "%s" > "%t"
// RUN: %dafny /noVerify /compile:4 /compileTarget:cs "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /compileTarget:js "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /compileTarget:go "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /compileTarget:java "%s" >> "%t"
// RUN: %dafny /compile:0 /unicodeChar:0 "%s" > "%t"
// RUN: %dafny /noVerify /compile:4 /unicodeChar:0 /compileTarget:cs "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /unicodeChar:0 /compileTarget:js "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /unicodeChar:0 /compileTarget:go "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /unicodeChar:0 /compileTarget:java "%s" >> "%t"
// RUN: %diff "%s.expect" "%t"

// Python salts hashes so they are not deterministic.
Expand Down
10 changes: 5 additions & 5 deletions Test/comp/TypeParams.dfy.expect
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Dafny program verifier did not attempt verification
null null null null null
{} multiset{} [] map[] {} map[]
null null null null
0 [] Q {} 0 Dt.D0(0)
0 [] 'Q' {} 0 Dt.D0(0)
false Color.Orange 42 {} false Dt.D0(false)
NonemptyList.Atom(0)
6 7 8 9
Expand All @@ -27,7 +27,7 @@ Dafny program verifier did not attempt verification
null null null null null
{} multiset{} [] map[] {} map[]
null null null null
0 [] Q {} 0 Dt.D0(0)
0 [] 'Q' {} 0 Dt.D0(0)
false Color.Orange 42 {} false Dt.D0(false)
NonemptyList.Atom(0)
6 7 8 9
Expand All @@ -48,7 +48,7 @@ Dafny program verifier did not attempt verification
null null null null null
{} multiset{} [] map[] {} map[]
null null null null
0 [] Q {} 0 Dt.D0(0)
0 [] 'Q' {} 0 Dt.D0(0)
false Color.Orange 42 {} false Dt.D0(false)
NonemptyList.Atom(0)
6 7 8 9
Expand All @@ -69,7 +69,7 @@ Dafny program verifier did not attempt verification
null null null null null
{} multiset{} [] map[] {} map[]
null null null null
0 [] Q {} 0 Dt.D0(0)
0 [] 'Q' {} 0 Dt.D0(0)
false Color.Orange 42 {} false Dt.D0(false)
NonemptyList.Atom(0)
6 7 8 9
Expand All @@ -90,7 +90,7 @@ Dafny program verifier did not attempt verification
null null null null null
{} multiset{} [] map[] {} map[]
null null null null
0 [] Q {} 0 Dt.D0(0)
0 [] 'Q' {} 0 Dt.D0(0)
false Color.Orange 42 {} false Dt.D0(false)
NonemptyList.Atom(0)
6 7 8 9
Expand Down
12 changes: 6 additions & 6 deletions Test/comp/compile1quiet/CompileRunQuietly.dfy
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
// RUN: %dafny /compileTarget:cs "%s" > "%t"
// RUN: %dafny /unicodeChar:0 /compileTarget:cs "%s" > "%t"
// RUN: dotnet %S/CompileRunQuietly.dll >> "%t"

// RUN: %dafny /compileTarget:js "%s" >> "%t"
// RUN: %dafny /unicodeChar:0 /compileTarget:js "%s" >> "%t"
// RUN: node %S/CompileRunQuietly.js >> "%t"

// RUN: %dafny /compileTarget:go "%s" >> "%t"
// RUN: %dafny /unicodeChar:0 /compileTarget:go "%s" >> "%t"
// RUN: %S/CompileRunQuietly >> "%t"

// RUN: %dafny /compileTarget:java "%s" >> "%t"
// RUN: %dafny /unicodeChar:0 /compileTarget:java "%s" >> "%t"
// RUN: java -cp %binaryDir/DafnyRuntime.jar:%S/CompileRunQuietly-java CompileRunQuietly >> "%t"

// RUN: %dafny /compileTarget:cpp "%s" >> "%t"
// RUN: %dafny /unicodeChar:0 /compileTarget:cpp "%s" >> "%t"
// RUN: %S/CompileRunQuietly.exe >> "%t"

// RUN: %dafny /compileTarget:py "%s" >> "%t"
// RUN: %dafny /unicodeChar:0 /compileTarget:py "%s" >> "%t"
// RUN: python3 %S/CompileRunQuietly-py/CompileRunQuietly.py >> "%t"

// RUN: %diff "%s.expect" "%t"
Expand Down
Loading

0 comments on commit a424583

Please sign in to comment.