Skip to content

Commit

Permalink
moidfy readme
Browse files Browse the repository at this point in the history
add code expected section
  • Loading branch information
fengyuanyang authored and fengyuanyang committed Oct 11, 2020
1 parent df61f5b commit d1d4546
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,22 @@
5. Loops - while loop and for loop

more...
### Code expected
* Proper naming for variables, avoid using i,v,k...etc. The variable name should be self explanatory.
* Proper names for files
* Follow unit tests naming conventions - **MethodName_StateUnderTest_ExpectedBehavior**

```
String hello(String name) {
return "Hello World " + name;
}
@Test
void hello_InputName_HelloWorldWithName() {
String result = helloWorld.hello("Name");
assertEquals("Hello World Name", result);
}
```


## Background
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.ordestiny.tdd;

import com.ordestiny.tdd.string.HelloWorld;
import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.*;
Expand Down

0 comments on commit d1d4546

Please sign in to comment.