File size: 363 Bytes
730343d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
using Jugsaw

"""
    greet(x)

A function returns "Hello, \$x".
"""
greet(x::String) = "Hello, $x"

# test input types
@enum ENM X Y Z
const dict = Dict(3 => 5)

@register helloworld begin
    greet("Jinguo") == "Hello, Jinguo"
    identity((X, 1.0, 1, "string", nothing, [1, 2], dict, ComplexF64)) == (X, 1.0, 1, "string", nothing, [1, 2], dict, ComplexF64)
end