aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDaniel Gavin <danielgavin5@hotmail.com>2022-07-17 14:27:24 +0200
committerDaniel Gavin <danielgavin5@hotmail.com>2022-07-17 14:27:24 +0200
commit03cc939f593fe35db9543442bcf819db833b900d (patch)
tree17f4e9b76a67417c6a8a127492c0a151e99d0c05 /tools
parent817e63d6ea0b5ce45a898ff288fb51f5a96a9f59 (diff)
Fix regression and added to snapshot
Diffstat (limited to 'tools')
-rw-r--r--tools/odinfmt/tests/.snapshots/calls.odin14
-rw-r--r--tools/odinfmt/tests/calls.odin14
2 files changed, 28 insertions, 0 deletions
diff --git a/tools/odinfmt/tests/.snapshots/calls.odin b/tools/odinfmt/tests/.snapshots/calls.odin
index 8cba026..d169f9b 100644
--- a/tools/odinfmt/tests/.snapshots/calls.odin
+++ b/tools/odinfmt/tests/.snapshots/calls.odin
@@ -45,4 +45,18 @@ calls :: proc() {
)
+ test_2(
+ Foo{
+ field1 = 1,
+ field2 = "hello",
+ field3 = 1,
+ field4 = "world",
+ field5 = 1,
+ field6 = "!",
+ field7 = 1,
+ field8 = 1,
+ },
+ )
+
+
}
diff --git a/tools/odinfmt/tests/calls.odin b/tools/odinfmt/tests/calls.odin
index 59002fb..ae9837b 100644
--- a/tools/odinfmt/tests/calls.odin
+++ b/tools/odinfmt/tests/calls.odin
@@ -15,4 +15,18 @@ calls :: proc() {
result = vk.CreateInsance(my_really_cool_call(aaaaaaaaaaaaaaaaaaaaa, bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb, cccccccccccccccccccccccccccccccc, ddddddddddddddddddddddddddddddddddddd))
+
+ test_2(
+ Foo{field1 = 1,
+ field2 = "hello",
+ field3 = 1,
+ field4 = "world",
+ field5 = 1,
+ field6 = "!",
+ field7 = 1,
+ field8 = 1,
+ },
+ )
+
+
}