Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #6 from Herb-AI/package
Browse files Browse the repository at this point in the history
Package
  • Loading branch information
nicolaefilat authored Jul 10, 2023
2 parents 9f4dcdc + d0dacbe commit 963a126
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
15 changes: 15 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
4 changes: 2 additions & 2 deletions src/HerbEvaluation.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module HerbEvaluation

using ..HerbData
using ..HerbGrammar
using HerbData
using HerbGrammar

include("interpreter.jl")

Expand Down
17 changes: 17 additions & 0 deletions tests/runtests.jl
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

4 comments on commit 963a126

@nicolaefilat
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@nicolaefilat
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

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:

git tag -a v0.1.0 -m "<description of version>" 963a126f389e12f099b661bd86f378da8c3ebb3c
git push origin v0.1.0

@JuliaRegistrator
Copy link

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:

git tag -a v0.1.0 -m "<description of version>" 963a126f389e12f099b661bd86f378da8c3ebb3c
git push origin v0.1.0

Please sign in to comment.