mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-06 12:37:49 +00:00
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.
27 lines
518 B
Go
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())
|
|
|
|
}
|