Skip to content

Commit

Permalink
#4 fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jun 26, 2024
1 parent d51f617 commit 6b594cd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/fbe/conclude.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
# SOFTWARE.

require_relative '../fbe'
require_relative 'fb'
require_relative 'octo'
require_relative 'if_absent'

# Create a conclude code block.
def Fbe.conclude(fbx = Fbe.fb, judge = $judge, loog = $loog, &)
Expand Down
1 change: 1 addition & 0 deletions lib/fbe/fb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
# SOFTWARE.

require 'judges'
require 'factbase'
require 'factbase/looged'
require 'factbase/pre'
require 'factbase/rules'
Expand Down
2 changes: 1 addition & 1 deletion lib/fbe/if_absent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
require 'time'
require 'others'
require_relative '../fbe'
require_relative '../fbe/fb'
require_relative 'fb'

# Injects a fact if it's absent in the factbase.
def Fbe.if_absent(fb = Fbe.fb)
Expand Down
3 changes: 3 additions & 0 deletions test/fbe/test_conclude.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
# License:: MIT
class TestConclude < Minitest::Test
def test_with_defaults
$fb = Factbase.new
$options = Judges::Options.new
$loog = Loog::NULL
Fbe.conclude do
# nothing
end
Expand Down

0 comments on commit 6b594cd

Please sign in to comment.