Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add test/test_write_formula_does_not_change_formula_string.rb

  I wrote bug in write_xlsx.  Not to rewrite bug in writeexcel.
  • Loading branch information...
commit 9caa97637c48614454de76253242dff4dd2ccfe9 1 parent 7da1c4c
@cxn03651 authored
Showing with 18 additions and 0 deletions.
  1. +18 −0 test/test_write_formula_does_not_change_formula_string.rb
View
18 test/test_write_formula_does_not_change_formula_string.rb
@@ -0,0 +1,18 @@
+# -*- coding: utf-8 -*-
+require 'helper'
+require 'writeexcel'
+require 'stringio'
+
+class TestWriteFormula < Test::Unit::TestCase
+ def setup
+ @workbook = WriteExcel.new(StringIO.new)
+ @worksheet = @workbook.add_worksheet('')
+ end
+
+ def test_write_formula_does_not_change_formula_string
+ formula = '=PI()'
+ @worksheet.write('A1', formula)
+
+ assert_equal('=PI()', formula)
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.