diff options
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/odinfmt/tests/allman/.snapshots/switch.odin | 17 | ||||
| -rw-r--r-- | tools/odinfmt/tests/allman/odinfmt.json | 3 | ||||
| -rw-r--r-- | tools/odinfmt/tests/allman/switch.odin | 18 |
3 files changed, 38 insertions, 0 deletions
diff --git a/tools/odinfmt/tests/allman/.snapshots/switch.odin b/tools/odinfmt/tests/allman/.snapshots/switch.odin new file mode 100644 index 0000000..9eef4a9 --- /dev/null +++ b/tools/odinfmt/tests/allman/.snapshots/switch.odin @@ -0,0 +1,17 @@ +package allman + +main :: proc() { + num := 1 + + switch num { + case 0: + case 1: + } + + switch num { + case 0: + case 1: + } + + +} diff --git a/tools/odinfmt/tests/allman/odinfmt.json b/tools/odinfmt/tests/allman/odinfmt.json new file mode 100644 index 0000000..d6ebe98 --- /dev/null +++ b/tools/odinfmt/tests/allman/odinfmt.json @@ -0,0 +1,3 @@ +{ + "brace_style": "Allman" +} diff --git a/tools/odinfmt/tests/allman/switch.odin b/tools/odinfmt/tests/allman/switch.odin new file mode 100644 index 0000000..b68f9bc --- /dev/null +++ b/tools/odinfmt/tests/allman/switch.odin @@ -0,0 +1,18 @@ +package allman + +main :: proc() { + num := 1 + + switch num + { + case 0: + case 1: + } + + switch num { + case 0: + case 1: + } + + +}
\ No newline at end of file |