create tests directory format

This commit is contained in:
m
2026-09-02 09:52:26 +02:00
parent 479c8ab61c
commit 32a61e6a64
94 changed files with 95 additions and 6476 deletions
+38
View File
@@ -0,0 +1,38 @@
package main
import (
"fmt"
"testing"
)
func TestUserCreation(t *testing.T) {
err, userAntoine := NewUser("antoine")
if err != nil {
t.Errorf(`Error creating antoine user %v`, err)
}
err, userBob := NewUser("bob")
if err != nil {
t.Errorf(`Error creating bob user %v`, err)
}
fmt.Println(userAntoine, userBob)
}
func TestCreateDocument(t *testing.T) {
err, document := NewDocument("paper.pdf", FILE)
if err != nil {
t.Errorf(`Error creating document %v`, err)
}
err, directory := NewDocument("bob", DIRECTORY)
if err != nil {
t.Errorf(`Error creating bob directory %v`, err)
}
fmt.Println(document, directory)
}