Skip to content

Commit

Permalink
Add test for issue #4269
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaelMayer committed Jul 10, 2023
1 parent f4b7ccd commit b5dd9dd
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Source/DafnyPipeline.Test/FormatterIssues.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,26 @@ namespace DafnyPipeline.Test;
[Collection("Singleton Test Collection - FormatterForTopLevelDeclarations")]
public class FormatterIssues : FormatterBaseTest {
[Fact]
public void GitIssue4269FormatLemmaIde() {
FormatterWorksFor(@"
module Foo {
function Baz()
:(a: string)
ensures a == ""asdf""
{
""asdf""
}
lemma Bar(t: string)
requires t == Baz()
ensures t == ""asdf""
{}
}
");
}

[Fact]
public void GitIssue3912FormatterCollectionArrow() {
FormatterWorksFor(@"
const i :=
Expand Down

0 comments on commit b5dd9dd

Please sign in to comment.