mirror of
https://github.com/unidoc/unioffice.git
synced 2025-05-12 19:29:34 +08:00

* update license and terms * Fixes * Create ACKNOWLEDGEMENTS.md * Update ACKNOWLEDGEMENTS.md * Revert go.mod changes and remove go1.11 tests
35 lines
937 B
Go
35 lines
937 B
Go
// Copyright 2020 FoxyUtils ehf. All rights reserved.
|
|
//
|
|
// DO NOT EDIT: generated by unioffice ECMA-376 generator
|
|
//
|
|
// Use of this software package and source code is governed by the terms of the
|
|
// UniDoc End User License Agreement (EULA) that is available at:
|
|
// https://unidoc.io/eula/
|
|
// A trial license code for evaluation can be obtained at https://unidoc.io website.
|
|
|
|
package chart_test
|
|
|
|
import (
|
|
"encoding/xml"
|
|
"testing"
|
|
|
|
"github.com/unidoc/unioffice/schema/soo/dml/chart"
|
|
)
|
|
|
|
func TestCT_ExtensionConstructor(t *testing.T) {
|
|
v := chart.NewCT_Extension()
|
|
if v == nil {
|
|
t.Errorf("chart.NewCT_Extension must return a non-nil value")
|
|
}
|
|
if err := v.Validate(); err != nil {
|
|
t.Errorf("newly constructed chart.CT_Extension should validate: %s", err)
|
|
}
|
|
}
|
|
|
|
func TestCT_ExtensionMarshalUnmarshal(t *testing.T) {
|
|
v := chart.NewCT_Extension()
|
|
buf, _ := xml.Marshal(v)
|
|
v2 := chart.NewCT_Extension()
|
|
xml.Unmarshal(buf, v2)
|
|
}
|