We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8463f6e commit e6a3ccaCopy full SHA for e6a3cca
test/cff_file_test.rb
@@ -419,6 +419,19 @@ def test_parse_comment
419
assert_equal(after_m, ::CFF::File.parse_comment(before_m))
420
end
421
422
+ def test_set_comment
423
+ comment = 'Test comment.'
424
+ file = ::CFF::File.new(OUTPUT_CFF, 'Software', create: true)
425
+ file.comment = comment
426
+
427
+ assert_equal file.comment, comment
428
429
+ within_construct(CONSTRUCT_OPTS) do
430
+ file.write
431
+ check_file_comment(OUTPUT_CFF, [comment])
432
+ end
433
434
435
private
436
437
def check_file_contents(file, contents, exists: true)
0 commit comments