test/command_node_test.rb in clbustos-rtf-0.3.0 vs test/command_node_test.rb in clbustos-rtf-0.3.1
- old
+ new
@@ -154,9 +154,19 @@
node = root.superscript
assert(node.prefix == '\super')
assert(node.suffix == nil)
assert(node == root[-1])
+
+ node = root.subscript
+ assert(node.prefix == '\sub')
+ assert(node.suffix == nil)
+ assert(node == root[-1])
+
+ node = root.strike
+ assert(node.prefix == '\strike')
+ assert(node.suffix == nil)
+ assert(node == root[-1])
end
# Test text node addition.
def test_text
root = CommandNode.new(nil, nil)