aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-10-06 13:48:23 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-10-06 16:33:44 +0900
commit0202ca7cfc13866b603f5e093145ef80ac4728db (patch)
tree36009e7984019c464bb1384fca95a466b43ad033
parent5c779dc45dfc53c4e7d50e2bb8e5ef0c61404b4d (diff)
downloadruby-0202ca7cfc13866b603f5e093145ef80ac4728db.tar.gz
Move rbconfig to the top
It is required in the always defined class level.
-rw-r--r--test/ruby/test_pack.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_pack.rb b/test/ruby/test_pack.rb
index 27573ef457..3da49ef485 100644
--- a/test/ruby/test_pack.rb
+++ b/test/ruby/test_pack.rb
@@ -1,6 +1,7 @@
# coding: US-ASCII
# frozen_string_literal: false
require 'test/unit'
+require 'rbconfig'
class TestPack < Test::Unit::TestCase
def test_pack
@@ -442,7 +443,6 @@ class TestPack < Test::Unit::TestCase
assert_operator(4, :<=, [1].pack("L!").bytesize)
end
- require 'rbconfig'
def test_pack_unpack_qQ
s1 = [578437695752307201, -506097522914230529].pack("q*")
s2 = [578437695752307201, 17940646550795321087].pack("Q*")