My favorites
▼
|
Sign in
zwds
紫微斗數 Chinese fortune program "zi-wei-do-su"
Project Home
Downloads
Wiki
Issues
Source
Checkout
Browse
Changes
Source path:
svn
/
trunk
/
zwds
/
core
/
test_yingyang.twpy
‹r44
r68
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
#!/usr/bin/python
# -*- coding: utf-8 -*-
從 n_yingyang 導入 *
定義 測試_天干():
申明 丁.陰陽 == 陰
申明 壬.陰陽 == 陽
定義 測試_天干表():
申明 天干表[5] == 己
申明 天干表[9] == 癸
申明 天干表[-2] == 壬
定義 測試_地支():
申明 未.方向 == 南
申明 丑.陰陽 == 陰
申明 申.時間 == (15, 17)
定義 測試_地支表():
申明 地支表[-3] == 酉
申明 地支表[6] == 午
定義 測試_生肖():
# 地支對應陰陽
申明 鼠.地支.陰陽 == 陽
# 地支對應生肖
申明 辰.生肖 == 龍
定義 測試_五行生剋():
申明 火.相剋 == 金
申明 金.相生 == 水
申明 水.相洩 == 金
申明 水.相乘 == 火
申明 土.相悔 == 木
定義 測試_五行與方向():
申明 北.五行 == 水
申明 水.方向 == 北
定義 測試_五行與天干():
申明 土.天干 == (戊, 己)
申明 庚.五行 == 金
定義 測試_五行與地支():
申明 火.地支 == (巳, 午)
申明 午.五行 == 火
Show details
Hide details
Change log
r45
by gasolin on May 20, 2008
Diff
update struct
Go to:
/trunk/core
/trunk/zwds
/trunk/zwds/core
/trunk/zwds/core/__init__.py
/trunk/zwds/core/n_test_yingyang.py
/trunk/zwds/core/n_yingyang.py
/trunk/zwds/core/test_yingyang.twpy
/trunk/zwds/core/yingyang.py
/trunk/zwds/core/yingyang.twpy
Project members,
sign in
to write a code review
Older revisions
r44
by gasolin on May 20, 2008
Diff
good core
r43
by gasolin on May 20, 2008
Diff
add test cases
All revisions of this file
File info
Size: 1086 bytes, 47 lines
View raw file
Powered by
Google Project Hosting