generated from errata-ai/Hugo
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
31 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
MDX.zip | ||
/testdata/styles | ||
/testdata/out.md | ||
|
||
# Binaries for programs and plugins | ||
*.exe | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,3 @@ | ||
module github.com/errata-ai/Hugo | ||
module github.com/errata-ai/MDX | ||
|
||
go 1.17 | ||
|
||
require github.com/google/go-cmdtest v0.4.0 | ||
|
||
require ( | ||
github.com/google/go-cmp v0.3.1 // indirect | ||
github.com/google/renameio v0.1.0 // indirect | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,28 @@ | ||
package main | ||
|
||
import "os" | ||
import ( | ||
"errors" | ||
"os" | ||
"path/filepath" | ||
) | ||
|
||
func cdf() int { | ||
os.Chdir(os.Args[1]) | ||
return 0 | ||
func main() { | ||
expected := filepath.Join("testdata", "in.md") | ||
observed := filepath.Join("testdata", "out.md") | ||
|
||
// Read the expected and observed files | ||
expectedContent, err := os.ReadFile(expected) | ||
if err != nil { | ||
panic(err) | ||
} | ||
|
||
observedContent, err := os.ReadFile(observed) | ||
if err != nil { | ||
panic(err) | ||
} | ||
|
||
// Compare the contents of the files | ||
if string(expectedContent) != string(observedContent) { | ||
panic(errors.New("expected and observed files do not match")) | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters