- Scala Test-Driven Development
- Gaurav Sood
- 190字
- 2021-07-08 10:44:56
Conventions
In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.
Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "The cancel()
method forces the test to be interrupted."
A block of code is set as follows:
test("one plus one with result") { val two = 2 assertResult(two) { 1 + 1 } }
Any command-line input or output is written as follows:
$ sbt test [info] Loading project definition from /helloworld/project [info] Set current project to Chap1 (in build file:/Packt/ helloworld /) [info] Compiling 1 Scala source to /Packt/ helloworld /target/scala/classes...
New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "Tail-call optimization is where we can escape allocating a new stack frame for a function."
Note
Warnings or important notes appear in a box like this.
Tip
Tips and tricks appear like this.
- HTML5+CSS3王者歸來(lái)
- JIRA 7 Administration Cookbook(Second Edition)
- FreeSWITCH 1.6 Cookbook
- 深入淺出RxJS
- TradeStation交易應(yīng)用實(shí)踐:量化方法構(gòu)建贏家策略(原書第2版)
- Corona SDK Mobile Game Development:Beginner's Guide(Second Edition)
- Managing Microsoft Hybrid Clouds
- Python青少年趣味編程
- Tableau Dashboard Cookbook
- ANSYS FLUENT 16.0超級(jí)學(xué)習(xí)手冊(cè)
- 你必須知道的.NET(第2版)
- VC++ 2008專題應(yīng)用程序開(kāi)發(fā)實(shí)例精講
- Django 2.0 入門與實(shí)踐
- Unity虛擬現(xiàn)實(shí)開(kāi)發(fā)圣典
- MySQL數(shù)據(jù)庫(kù)應(yīng)用技術(shù)及實(shí)戰(zhàn)