2017-08-30 20:17:09 -05:00

25 lines
736 B
Go

// Copyright 2017 Baliance. All rights reserved.
//
// Use of this source code is governed by the terms of the Affero GNU General
// Public License version 3.0 as published by the Free Software Foundation and
// appearing in the file LICENSE included in the packaging of this file. A
// commercial license can be purchased by contacting sales@baliance.com.
package math_test
import (
"testing"
"baliance.com/gooxml/schema/schemas.openxmlformats.org/officeDocument/2006/math"
)
func TestMathPrConstructor(t *testing.T) {
v := math.NewMathPr()
if v == nil {
t.Errorf("math.NewMathPr must return a non-nil value")
}
if err := v.Validate(); err != nil {
t.Errorf("newly constructed math.MathPr should validate: %s", err)
}
}