megatest: make it green on Linux
This commit is contained in:
parent
916955dc95
commit
34815a4697
6 changed files with 9 additions and 9 deletions
|
|
@ -24,12 +24,11 @@ G:0,1:0.1
|
||||||
G:0,1:0.1
|
G:0,1:0.1
|
||||||
H:1:0.1
|
H:1:0.1
|
||||||
'''
|
'''
|
||||||
|
joinable: false
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
import macros, sequtils, sets, sugar, tables, typetraits
|
import macros, sequtils, sets, sugar, tables, typetraits
|
||||||
|
|
||||||
|
|
||||||
block t88:
|
block t88:
|
||||||
type
|
type
|
||||||
BaseClass[V] = object of RootObj
|
BaseClass[V] = object of RootObj
|
||||||
|
|
|
||||||
|
|
@ -5,12 +5,11 @@ direct
|
||||||
generic
|
generic
|
||||||
generic
|
generic
|
||||||
'''
|
'''
|
||||||
|
joinable: false
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
import algorithm, sugar, sequtils, typetraits, asyncdispatch
|
import algorithm, sugar, sequtils, typetraits, asyncdispatch
|
||||||
|
|
||||||
|
|
||||||
block tconfusing_arrow:
|
block tconfusing_arrow:
|
||||||
type Deck = object
|
type Deck = object
|
||||||
value: int
|
value: int
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
discard """
|
discard """
|
||||||
output: '''Match failed: spam
|
output: '''Match failed: spam
|
||||||
Match failed: ham'''
|
Match failed: ham'''
|
||||||
|
joinable: false
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# bug #6220
|
# bug #6220
|
||||||
|
|
|
||||||
|
|
@ -16,5 +16,4 @@ const
|
||||||
stdout.write(rawQuote)
|
stdout.write(rawQuote)
|
||||||
stdout.write(tripleEmpty)
|
stdout.write(tripleEmpty)
|
||||||
stdout.write(raw)
|
stdout.write(raw)
|
||||||
stdout.write(escaped)
|
stdout.writeLine(escaped)
|
||||||
#OUT a""long string"""""abc"def_'2'●𝌆𝌆A
|
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ true
|
||||||
false
|
false
|
||||||
true
|
true
|
||||||
false'''
|
false'''
|
||||||
|
joinable: false
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import macros
|
import macros
|
||||||
|
|
|
||||||
|
|
@ -8,20 +8,21 @@ true
|
||||||
false
|
false
|
||||||
true
|
true
|
||||||
'''
|
'''
|
||||||
|
joinable: false
|
||||||
"""
|
"""
|
||||||
|
|
||||||
block tlowhigh:
|
block tlowhigh:
|
||||||
type myEnum = enum e1, e2, e3, e4, e5
|
type myEnum = enum e1, e2, e3, e4, e5
|
||||||
var a: array[myEnum, int]
|
var a: array[myEnum, int]
|
||||||
|
|
||||||
for i in low(a) .. high(a):
|
for i in low(a) .. high(a):
|
||||||
a[i] = 0
|
a[i] = 0
|
||||||
|
|
||||||
proc sum(a: openarray[int]): int =
|
proc sum(a: openarray[int]): int =
|
||||||
result = 0
|
result = 0
|
||||||
for i in low(a)..high(a):
|
for i in low(a)..high(a):
|
||||||
inc(result, a[i])
|
inc(result, a[i])
|
||||||
|
|
||||||
doAssert sum([1, 2, 3, 4]) == 10
|
doAssert sum([1, 2, 3, 4]) == 10
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue