Created
November 9, 2016 06:41
-
-
Save Centaur/93d587a1b1d98452524d185b499b413c to your computer and use it in GitHub Desktop.
TestCase
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
val programmingScala = TreeNode("Scala 程序设计", Seq( | |
TreeNode("序"), | |
TreeNode("前言"), | |
TreeNode("第一章 零到六十: Scala简介", Seq( | |
TreeNode("1.1 为什么选择 Scala", Seq( | |
TreeNode("1.1.1 富有魅力的 Scala"), | |
TreeNode("1.1.2 关于 Java8") | |
)), | |
TreeNode("1.2 安装 Scala", Seq( | |
TreeNode("1.2.1 使用 SBT"), | |
TreeNode("1.2.2 执行 Scala 命令行工具"), | |
TreeNode("1.2.3 在 IDE 中运行 Scala REPL") | |
)), | |
TreeNode("1.3 使用 Scala"), | |
TreeNode("1.4 并发"), | |
TreeNode("1.5 本章回顾与下一章提要") | |
)), | |
TreeNode("第二章 更简洁,更强大", Seq( | |
TreeNode("2.1 分号"), | |
TreeNode("2.2 变量声明"), | |
TreeNode("2.3 Range"), | |
TreeNode("2.4 偏函数"), | |
TreeNode("2.5 方法声明", Seq( | |
TreeNode("2.5.1 方法默认值和命名参数列表"), | |
TreeNode("2.5.2 方法具有多个参数列表"), | |
TreeNode("2.5.3 Future 简介"), | |
TreeNode("2.5.4 嵌套方法的定义与递归") | |
)), | |
TreeNode("2.6 推断类型信息"), | |
TreeNode("2.7 保留字"), | |
TreeNode("2.8 字面量", Seq( | |
TreeNode("2.8.1 整数字面量"), | |
TreeNode("2.8.2 浮点数字面量"), | |
TreeNode("2.8.3 布尔型字面量"), | |
TreeNode("2.8.4 字符字面量"), | |
TreeNode("2.8.5 字符串字面量"), | |
TreeNode("2.8.6 符号字面量"), | |
TreeNode("2.8.7 函数字面量"), | |
TreeNode("2.8.8 元组字面量") | |
)), | |
TreeNode("2.9 Option、Some 和 None: 避免使用 null"), | |
TreeNode("2.10 封闭类的继承"), | |
TreeNode("2.11 用文件名和名空间组织代码"), | |
TreeNode("2.12 导入类型及其成员", Seq( | |
TreeNode("2.12.1 导入是相对的"), | |
TreeNode("2.12.2 包对象") | |
)), | |
TreeNode("2.13 抽象类型与参数化类型"), | |
TreeNode("2.14 本章回顾与下一章提要") | |
)) | |
)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment