Skip to content

Commit 06e2052

Browse files
authored
README.md: add syntax highlighting
1 parent a4ce956 commit 06e2052

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
# Assert library
22

33
Following official [documentation](https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abapmethods_testing.htm) we're supposed to write unit tests using following template
4-
```
4+
```abap
55
cl_abap_unit_assert=>assert_equals( act = myclass=>text
66
exp = 'X' ).
77
```
88

99
The only function this library delivers - it allows us to use shorter construction like this:
10-
```
10+
```abap
1111
assert( myclass=>text )->equals( 'X' ).
1212
```
1313

1414
# Usage
1515
To use this library you need to use `ZCL_ASSERT` class as a base class for your test class.
16-
```
16+
```abap
1717
CLASS ltcl_main DEFINITION INHERITING FROM zcl_assert
1818
FINAL FOR TESTING
1919
DURATION SHORT
@@ -23,7 +23,7 @@ endclass.
2323
```
2424

2525
then later in your code you can just use something like:
26-
```
26+
```abap
2727
assert( 1 )->not_initial( ).
2828
assert( 1 )->eq( 1 ).
2929
assert( 1 )->ne( 2 ).

0 commit comments

Comments
 (0)