Skip to content

Commit

Permalink
fix: better function name
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeagle committed Jan 30, 2025
1 parent f018862 commit 5ee924d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions oci_go_image/main_test.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package main

import (
"strings"
"testing"
)

func TestGenerateNumber(t *testing.T) {
func TestCompare(t *testing.T) {
result := Compare("this", "that")

if result == "" {
t.Error("got an empty string")
if !strings.Contains(result, "this") {
t.Error("expected a diff containing 'this' but got", result)
}
}

0 comments on commit 5ee924d

Please sign in to comment.