diff options
| author | nico-bb <64324649+nico-bb@users.noreply.github.com> | 2022-07-29 12:48:39 +0200 |
|---|---|---|
| committer | nico-bb <64324649+nico-bb@users.noreply.github.com> | 2022-07-29 12:48:39 +0200 |
| commit | 25af2b86c5c317c3a42c6d59ef42e29e4bc064d6 (patch) | |
| tree | ad8c83890bca9aed2ba40d75162f0900a5507ee2 /tools | |
| parent | 388d0ffe5fd2915eafefb2b5e0ffaae9c88e7aba (diff) | |
Added another test for ternary_when expression
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/odinfmt/tests/.snapshots/assignments.odin | 1 | ||||
| -rw-r--r-- | tools/odinfmt/tests/assignments.odin | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tools/odinfmt/tests/.snapshots/assignments.odin b/tools/odinfmt/tests/.snapshots/assignments.odin index 338e33b..983087e 100644 --- a/tools/odinfmt/tests/.snapshots/assignments.odin +++ b/tools/odinfmt/tests/.snapshots/assignments.odin @@ -14,4 +14,5 @@ assignments :: proc() { ternary_when_assignment :: proc() { a := WGL_CONTEXT_FLAGS_ARB when ODIN_DEBUG else 0 + b := ODIN_DEBUG ? WGL_CONTEXT_FLAGS_ARB : 0 } diff --git a/tools/odinfmt/tests/assignments.odin b/tools/odinfmt/tests/assignments.odin index 9a92866..53cc9aa 100644 --- a/tools/odinfmt/tests/assignments.odin +++ b/tools/odinfmt/tests/assignments.odin @@ -7,4 +7,5 @@ assignments :: proc() { ternary_when_assignment :: proc() { a := WGL_CONTEXT_FLAGS_ARB when ODIN_DEBUG else 0 + b := ODIN_DEBUG ? WGL_CONTEXT_FLAGS_ARB : 0 } |