mirror of
https://github.com/dvorka/hstr.git
synced 2024-12-29 11:11:32 +08:00
Adding test plan for escaped characters.
This commit is contained in:
parent
5194cdf8b9
commit
4b27f03851
1 changed files with 27 additions and 0 deletions
27
tests/src/test_escape_chars.c
Normal file
27
tests/src/test_escape_chars.c
Normal file
|
@ -0,0 +1,27 @@
|
|||
/*
|
||||
============================================================================
|
||||
Name : test_escape_chars.c
|
||||
Author : martin.dvorak@mindforger.com
|
||||
Copyright : Apache 2.0
|
||||
Description : A test for verification of escape/special chars handling
|
||||
============================================================================
|
||||
*/
|
||||
|
||||
void generate_bash_history_with_special_chars() {
|
||||
/*
|
||||
// crash
|
||||
%s
|
||||
|
||||
// substituation > should not happen:
|
||||
date -d yesterday +%A
|
||||
date -d yesterday +0X1.4C41E000008P-895
|
||||
|
||||
// crash
|
||||
mocp -Q "<%state> '%file'\n"
|
||||
*/
|
||||
}
|
||||
|
||||
void main() {
|
||||
generate_bash_history_with_special_chars();
|
||||
}
|
||||
|
Loading…
Reference in a new issue