We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 253fc23 commit 31478f5Copy full SHA for 31478f5
lib/languages/mips.txt
@@ -1,2 +1,5 @@
1
!e
2
#\p
3
+.data
4
+.text
5
+.globl
test/languages/mips_test.rb
@@ -6,29 +6,31 @@ def test_full_example
6
# General comment
7
#
8
# $a0 - input
9
-
+
10
.globl binary_convert
11
12
+ .data
13
14
+ .text
15
16
binary_convert:
17
li $v0, 0 # line comment
18
19
# Another line comment
20
end:
21
jr $ra
22
23
CODE
24
- expected = <<~CODE
- .globl binary_convert
25
+ expected = <<~CODE
26
27
li $v0, 0
28
29
30
31
32
33
- assert_equal expected, SnippetExtractor::ExtractSnippet.(code, :nim)
34
+ assert_equal expected, SnippetExtractor::ExtractSnippet.(code, :mips)
35
end
36
0 commit comments