-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzhilian_test.go
98 lines (82 loc) · 2.7 KB
/
zhilian_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
package resume
import "testing"
var pathZhiLian = "./test_documents/test_zhilian.txt"
var resumeZhiLian = NewZhiLianResume(pathZhiLian)
func TestZhiLianResume_JobWant(t *testing.T) {
expected := "Java开发工程师"
if resumeZhiLian.JobWant() != expected {
t.Errorf("TestZhiLianResume_JobWant should be %s", expected)
}
}
func TestZhiLianResume_Phone(t *testing.T) {
expected := "15088111111"
if resumeZhiLian.Phone() != expected {
t.Errorf("TestZhiLianResume_Phone should be %s", expected)
}
}
func TestZhiLianResume_Degree(t *testing.T) {
expected := "本科"
if resumeZhiLian.Degree() != expected {
t.Errorf("TestZhiLianResume_Degree should be %s", expected)
}
}
func TestZhiLianResume_Education(t *testing.T) {
expected := "2014.03 - 2016.06 浙江理工大学 工商管理 本科 2008.09 - 2011.06 浙江树人大学 应用化学 大专 培训经历 2011.06 - 2011.10 Java软件开发"
if resumeZhiLian.Education() != expected {
t.Errorf("TestZhiLianResume_Education should be %s", expected)
}
}
func TestZhiLianResume_Gender(t *testing.T) {
expected := "男"
if resumeZhiLian.Gender() != expected {
t.Errorf("TestZhiLianResume_Gender should be %s", expected)
}
}
func TestZhiLianResume_Name(t *testing.T) {
expected := "billyct"
if resumeZhiLian.Name() != expected {
t.Errorf("TestZhiLianResume_Name should be %s", expected)
}
}
func TestZhiLianResume_Age(t *testing.T) {
expected := "30岁"
if resumeZhiLian.Age() != expected {
t.Errorf("TestZhiLianResume_Age should be %s", expected)
}
}
func TestZhiLianResume_Birth(t *testing.T) {
expected := "1988年7月"
if resumeZhiLian.Birth() != expected {
t.Errorf("TestZhiLianResume_Birth should be %s", expected)
}
}
func TestZhiLianResume_WorkTime(t *testing.T) {
expected := "6年工作经验"
if resumeZhiLian.WorkTime() != expected {
t.Errorf("TestZhiLianResume_WorkTime should be %s", expected)
}
}
func TestZhiLianResume_Industry(t *testing.T) {
expected := "计算机软件、互联网/电子商务、IT服务(系统/数据/维护)"
if resumeZhiLian.Industry() != expected {
t.Errorf("TestZhiLianResume_Industry should be %s", expected)
}
}
func TestZhiLianResume_Residence(t *testing.T) {
expected := "杭州 滨江区"
if resumeZhiLian.Residence() != expected {
t.Errorf("TestZhiLianResume_Industry should be %s", expected)
}
}
func TestZhiLianResume_SalaryCurrent(t *testing.T) {
expected := "10001-15000元/月"
if resumeZhiLian.SalaryWant() != expected {
t.Errorf("TestZhiLianResume_SalaryCurrent should be %s", expected)
}
}
func TestZhiLianResume_SalaryWant(t *testing.T) {
expected := "10001-15000元/月"
if resumeZhiLian.SalaryWant() != expected {
t.Errorf("TestZhiLianResume_SalaryWant should be %s", expected)
}
}