Files
libopenapi/document_test.go
Dave Shanley 2c4177e97a Swagger 2.0 high level model going in now
Shifting a few high level models around that are also shared. now it's just a churn game to flesh the high level model and test it up.
2022-09-09 07:08:52 -04:00

27 lines
518 B
Go

// Copyright 2022 Princess B33f Heavy Industries / Dave Shanley
// SPDX-License-Identifier: MIT
package main
import (
"testing"
)
func TestLoadDocument_Simple(t *testing.T) {
//
//yml := `openapi: 3.0.1`
//doc, err := LoadDocument([]byte(yml))
//assert.NoError(t, err)
//assert.Equal(t, "3.0.1", doc.GetVersion())
}
func TestLoadDocument_WithInfo(t *testing.T) {
//yml := `openapi: 3.0.1`
//doc, err := LoadDocument([]byte(yml))
//assert.NoError(t, err)
//assert.Equal(t, "3.0.1", doc.GetVersion())
}