xlogic_tests/lib.rs
1// SPDX-FileCopyrightText: Copyright 2023 xlogic <https://xlogic.dev> and contributors to the project
2// SPDX-License-Identifier: Apache-2.0
3// SPDX-FileContributor: 2023 Tymoteusz Blazejczyk <tymoteusz.blazejczyk@tymonx.com>
4
5extern crate xlogic_derive;
6
7#[derive(xlogic_derive::HelperAttr)]
8pub struct Struct {
9 #[helper] field: i32,
10 field2: i64,
11}
12
13#[cfg(test)]
14mod tests {
15 #[test]
16 fn it_works() {
17 let mut variable = super::Struct {
18 field: 5,
19 field2: 1,
20 };
21
22 variable.field = 10;
23 }
24}