This repository has been archived by the owner on Sep 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from Herb-AI/package
Package
- Loading branch information
Showing
3 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,18 @@ name = "HerbEvaluation" | |
uuid = "eb1bf938-813d-4942-ac0f-b4657a683e76" | ||
authors = ["Jaap de Jong <[email protected]>"] | ||
version = "0.1.0" | ||
|
||
[deps] | ||
HerbData = "495a3ad3-8034-41b3-a087-aacf2fd71098" | ||
HerbGrammar = "4ef9e186-2fe5-4b24-8de7-9f7291f24af7" | ||
|
||
[compat] | ||
julia = "1.8" | ||
HerbData = "0.1.0" | ||
HerbGrammar = "0.1.0" | ||
|
||
[extras] | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
|
||
[targets] | ||
test = ["Test"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using HerbEvaluation | ||
using Test | ||
|
||
@testset "HerbEvaluation.jl" begin | ||
# Write your tests here. | ||
@testset "Simple test_with_input (x + 2)" begin | ||
tab = Dict{Symbol,Any}(:+ => +) | ||
input_dict = Dict(:x => 3) | ||
@test test_with_input(tab, :(x + 2), input_dict) == 5 | ||
end | ||
|
||
@testset "Simple test_with_input (x * x + 2)" begin | ||
tab = Dict{Symbol,Any}(:+ => +, :* => *) | ||
input_dict = Dict(:x => 3) | ||
@test test_with_input(tab, :(x * x + 2), input_dict) == 3 * 3 + 2 | ||
end | ||
end |
963a126
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register()
963a126
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register()
963a126
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/89706
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
963a126
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request updated: JuliaRegistries/General/89706
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: