added guard clause generation
Some checks failed
CI / Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} (x64, ubuntu-latest, 1.10) (push) Has been cancelled
CI / Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} (x64, ubuntu-latest, 1.6) (push) Has been cancelled
CI / Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} (x64, ubuntu-latest, pre) (push) Has been cancelled
CompatHelper / CompatHelper (push) Has been cancelled
Some checks failed
CI / Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} (x64, ubuntu-latest, 1.10) (push) Has been cancelled
CI / Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} (x64, ubuntu-latest, 1.6) (push) Has been cancelled
CI / Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} (x64, ubuntu-latest, pre) (push) Has been cancelled
CompatHelper / CompatHelper (push) Has been cancelled
This commit is contained in:
@ -25,17 +25,7 @@ function testHelper(expression::Expr, variables::Matrix{Float64}, parameters::Ve
|
||||
@test isequal(result[1,1], expectedResult)
|
||||
end
|
||||
|
||||
@testset "Test TMP interpretation" begin
|
||||
postfixExpr = expr_to_postfix(expressions[1])
|
||||
postfixExprs = Vector([postfixExpr])
|
||||
push!(postfixExprs, expr_to_postfix(expressions[2]))
|
||||
|
||||
# CUDA.@sync interpret(postfixExprs, variables, parameters)
|
||||
end
|
||||
|
||||
@testset "Test conversion to matrix" begin
|
||||
return
|
||||
|
||||
reference = Matrix{Float64}(undef, 2, 2)
|
||||
reference[1,1] = 5.0
|
||||
reference[2,1] = NaN64
|
||||
@ -43,14 +33,12 @@ end
|
||||
reference[2,2] = 0.0
|
||||
# reference = Matrix([5.0, NaN],
|
||||
# [5.0, 0.0])
|
||||
CUDA.@sync result = Interpreter.convert_to_matrix(parameters, NaN64)
|
||||
result = Interpreter.convert_to_matrix(parameters, NaN64)
|
||||
|
||||
@test isequal(result, reference)
|
||||
end
|
||||
|
||||
@testset "Test commutative interpretation" begin
|
||||
return
|
||||
|
||||
var = Matrix{Float64}(undef, 2, 1)
|
||||
param = Vector{Vector{Float64}}(undef, 1)
|
||||
expectedResult = 8.0 # Not using "eval" because the variables are not stored in global scope
|
||||
@ -71,8 +59,6 @@ end
|
||||
end
|
||||
|
||||
@testset "Test non commutative interpretation" begin
|
||||
return
|
||||
|
||||
var = Matrix{Float64}(undef, 2, 1)
|
||||
param = Vector{Vector{Float64}}(undef, 1)
|
||||
expectedResult = -2.0 # Not using "eval" because the variables are not stored in global scope
|
||||
@ -103,8 +89,6 @@ end
|
||||
end
|
||||
|
||||
@testset "Test single value operator interpretation" begin
|
||||
return
|
||||
|
||||
var = Matrix{Float64}(undef, 1, 1)
|
||||
param = Vector{Vector{Float64}}(undef, 1)
|
||||
expectedResult = 3.0 # Not using "eval" because the variables are not stored in global scope
|
||||
|
Reference in New Issue
Block a user