package main_test import ( "os" "strings" "testing" ) const ( cmdTest = "./html2md" dirTest = "." boldText = "Bold Text" boldEscape = "option src_ip" ) type testCase struct { name, out, in string args []string } func TestExec(t *testing.T) { testData := []testCase{ { "BoldText", "**Bold Text**", boldText, []string{"-i"}, }, { "BoldText-delimiter", "__Bold Text__", boldText, []string{"-i", "--opt-strong-delimiter", "__"}, }, { "BoldEscape", "**option src\\_ip**", boldEscape, []string{"-i"}, }, { "BoldEscapeOff", "**option src_ip**", boldEscape, []string{"-i", "--opt-escape-mode", "disabled"}, }, { "Checkbox", "- [x] Checked!\n- [ ] Check Me!", "