df_ls_syntax_analysis 0.3.0-rc.1

A language server for Dwarf Fortress RAW files
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![cfg(debug_assertions)]

use crate::TokenDeserialize;
use pretty_assertions::assert_eq;
use std::fmt::Debug;

pub fn test_structure<S: TokenDeserialize + Debug + PartialEq>(
    expected_structure: &S,
    given_structure: &S,
) {
    log::info!("Given Structure:\n{:#?}", given_structure);

    assert_eq!(expected_structure, given_structure);
}