From 0202ca7cfc13866b603f5e093145ef80ac4728db Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 6 Oct 2023 13:48:23 +0900 Subject: [PATCH] Move rbconfig to the top It is required in the always defined class level. --- test/ruby/test_pack.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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*")