emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/go-mode cfc3d50 058/495: add more test cases


From: ELPA Syncer
Subject: [nongnu] elpa/go-mode cfc3d50 058/495: add more test cases
Date: Sat, 7 Aug 2021 09:04:43 -0400 (EDT)

branch: elpa/go-mode
commit cfc3d500ebfbf130fadcc874df1f193188431918
Author: Dominik Honnef <dominikh@fork-bomb.org>
Commit: Dominik Honnef <dominikh@fork-bomb.org>

    add more test cases
---
 behaviour_tests/gh-16.go              |  6 ++++++
 indentation_tests/multiline_struct.go | 19 +++++++++++++++++++
 2 files changed, 25 insertions(+)

diff --git a/behaviour_tests/gh-16.go b/behaviour_tests/gh-16.go
new file mode 100644
index 0000000..c5075f0
--- /dev/null
+++ b/behaviour_tests/gh-16.go
@@ -0,0 +1,6 @@
+package magiccomma
+
+/*
+extern void CallMyFunction(void* pfoo);
+*/
+import "C"
diff --git a/indentation_tests/multiline_struct.go 
b/indentation_tests/multiline_struct.go
new file mode 100644
index 0000000..500dea6
--- /dev/null
+++ b/indentation_tests/multiline_struct.go
@@ -0,0 +1,19 @@
+testCase{char59 + "a." + char63 + "." + char63 + "." +
+       char63 + ".com",
+       false}
+
+ifi := Interface{
+       Index:        int(index),
+       MTU:          int(row.Mtu),
+       Name:         name,
+       HardwareAddr: HardwareAddr(row.PhysAddr[:row.PhysAddrLen]),
+       Flags:        flags}
+ift = append(ift, ifi)
+
+{"230-Anonymous access granted, restrictions apply\n" +
+       "Read the file README.txt,\n" +
+       "230  please",
+       23,
+       230,
+       "Anonymous access granted, restrictions apply\nRead the file 
README.txt,\n please",
+}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]