feat: Remove optional age field from Person struct

- Removed the optional nature of the `age` field in the `Person` struct.
This commit is contained in:
Mahmoud Emad
2025-03-19 15:05:16 +02:00
parent 3e10db326f
commit 8c966ae853
2 changed files with 2 additions and 2 deletions

View File

@@ -75,7 +75,7 @@ pub struct Person {
Base
mut:
name string
age ?int
age int
birthday time.Time
deathday time.Time
car Car

View File

@@ -5,7 +5,7 @@ import freeflowuniverse.herolib.data.markdownparser.elements
fn test_empty() {
mut mydoc := new(content: '')!
assert mydoc.children.len == 0
assert mydoc.children.len == 1
}
fn test_empty2() {