Skip to content

Commit

Permalink
Fix the test
Browse files Browse the repository at this point in the history
HIndint currently can't handle CPPs well, and thus there is an empty
line after the `where`, and lines containing only spaces inside it, but
this PR is still useful as it prevents HIndint from panicking
unnecessarily.
  • Loading branch information
toku-sa-n committed Oct 22, 2023
1 parent 206a577 commit 5e13ded
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions TESTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3413,33 +3413,21 @@ isDebug = False

Conditionals inside a `where` and empty lines

```haskell given
```haskell
foo = bar + baz
where
#if 0
bar = 1

baz = 1
#else
bar = 2

baz = 2
#endif
```

```haskell expect
foo = bar + baz
where
#if 0
bar = 1

baz = 1
#else
bar = 2

baz = 2
#endif
```


Macro definitions (`#define`)

```haskell
Expand Down

0 comments on commit 5e13ded

Please sign in to comment.