runmat 0.4.0

High-performance MATLAB/Octave runtime with Jupyter kernel support
1
2
3
4
5
6
7
8
9
10
use std::fs;
use std::path::PathBuf;

#[test]
fn public_api_spec_parses() {
    let path = PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("../../openapi/runmat-public.yaml");
    let contents = fs::read_to_string(&path).expect("read spec");
    let spec: openapiv3::OpenAPI = serde_yaml::from_str(&contents).expect("parse spec");
    assert_eq!(spec.openapi, "3.0.3");
}