|
14 | 14 | it_should_behave_like :rbasic
|
15 | 15 | end
|
16 | 16 |
|
17 |
| -ruby_version_is "3.4" do |
18 |
| - return |
19 |
| -end |
20 |
| - |
21 |
| -describe "RBasic support for RData" do |
22 |
| - before :all do |
23 |
| - @specs = CApiRBasicRDataSpecs.new |
24 |
| - @wrapping = CApiWrappedStructSpecs.new |
25 |
| - @data = -> { [@wrapping.wrap_struct(1024), @wrapping.wrap_struct(1025)] } |
26 |
| - end |
27 |
| - it_should_behave_like :rbasic |
| 17 | +ruby_version_is ""..."3.4" do |
| 18 | + describe "RBasic support for RData" do |
| 19 | + before :all do |
| 20 | + @specs = CApiRBasicRDataSpecs.new |
| 21 | + @wrapping = CApiWrappedStructSpecs.new |
| 22 | + @data = -> { [@wrapping.wrap_struct(1024), @wrapping.wrap_struct(1025)] } |
| 23 | + end |
| 24 | + it_should_behave_like :rbasic |
28 | 25 |
|
29 |
| - it "supports user flags" do |
30 |
| - obj, _ = @data.call |
31 |
| - initial = @specs.get_flags(obj) |
32 |
| - @specs.set_flags(obj, 1 << 14 | 1 << 16 | initial).should == 1 << 14 | 1 << 16 | initial |
33 |
| - @specs.get_flags(obj).should == 1 << 14 | 1 << 16 | initial |
34 |
| - @specs.set_flags(obj, initial).should == initial |
35 |
| - end |
| 26 | + it "supports user flags" do |
| 27 | + obj, _ = @data.call |
| 28 | + initial = @specs.get_flags(obj) |
| 29 | + @specs.set_flags(obj, 1 << 14 | 1 << 16 | initial).should == 1 << 14 | 1 << 16 | initial |
| 30 | + @specs.get_flags(obj).should == 1 << 14 | 1 << 16 | initial |
| 31 | + @specs.set_flags(obj, initial).should == initial |
| 32 | + end |
36 | 33 |
|
37 |
| - it "supports copying the flags from one object over to the other" do |
38 |
| - obj1, obj2 = @data.call |
39 |
| - initial = @specs.get_flags(obj1) |
40 |
| - @specs.get_flags(obj2).should == initial |
41 |
| - @specs.set_flags(obj1, 1 << 14 | 1 << 16 | initial) |
42 |
| - @specs.get_flags(obj1).should == 1 << 14 | 1 << 16 | initial |
| 34 | + it "supports copying the flags from one object over to the other" do |
| 35 | + obj1, obj2 = @data.call |
| 36 | + initial = @specs.get_flags(obj1) |
| 37 | + @specs.get_flags(obj2).should == initial |
| 38 | + @specs.set_flags(obj1, 1 << 14 | 1 << 16 | initial) |
| 39 | + @specs.get_flags(obj1).should == 1 << 14 | 1 << 16 | initial |
43 | 40 |
|
44 |
| - @specs.copy_flags(obj2, obj1) |
45 |
| - @specs.get_flags(obj2).should == 1 << 14 | 1 << 16 | initial |
46 |
| - @specs.set_flags(obj1, initial) |
47 |
| - @specs.copy_flags(obj2, obj1) |
48 |
| - @specs.get_flags(obj2).should == initial |
| 41 | + @specs.copy_flags(obj2, obj1) |
| 42 | + @specs.get_flags(obj2).should == 1 << 14 | 1 << 16 | initial |
| 43 | + @specs.set_flags(obj1, initial) |
| 44 | + @specs.copy_flags(obj2, obj1) |
| 45 | + @specs.get_flags(obj2).should == initial |
| 46 | + end |
49 | 47 | end
|
50 | 48 | end
|
0 commit comments