This repository has been archived by the owner on Jan 13, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a named label for every example and FAQ item
- Loading branch information
Showing
4 changed files
with
66 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
""" | ||
@brief test log(time=8s) | ||
@author Xavier Dupre | ||
""" | ||
|
||
import sys, os, unittest, shutil | ||
|
||
|
||
try : | ||
import src | ||
except ImportError : | ||
path = os.path.normpath(os.path.abspath(os.path.join(os.path.split(__file__)[0], "..", ".."))) | ||
if path not in sys.path : sys.path.append(path) | ||
import src | ||
|
||
from src.pyquickhelper.loghelper.flog import fLOG | ||
from src.pyquickhelper.helpgen.utils_sphinx_doc_helpers import make_label_index | ||
|
||
class TestSmallFunction(unittest.TestCase): | ||
|
||
def test_make_label_index(self) : | ||
fLOG (__file__, self._testMethodName, OutputPrint = __name__ == "__main__") | ||
title = "abAB_-()56$?" | ||
res = make_label_index(title,"") | ||
fLOG("***",title,res) | ||
assert res == "abAB_-56" | ||
|
||
if __name__ == "__main__" : | ||
unittest.main () |
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