17 lines
464 B
Go
17 lines
464 B
Go
package system
|
|
|
|
import "testing"
|
|
|
|
func TestExportCellValuePreservesNumericText(t *testing.T) {
|
|
value, ok := exportCellValue("007").(string)
|
|
if !ok || value != "007" {
|
|
t.Fatalf("exportCellValue() = %#v, want string 007", exportCellValue("007"))
|
|
}
|
|
}
|
|
|
|
func TestExportCellValuePreservesDriverBytes(t *testing.T) {
|
|
if value, ok := exportCellValue([]byte("42")).(string); !ok || value != "42" {
|
|
t.Fatalf("driver bytes = %#v", exportCellValue([]byte("42")))
|
|
}
|
|
}
|