|
|
@ -962,6 +962,9 @@ func TestCalcCellValue(t *testing.T) {
|
|
|
|
"=DAY(\"3-February-2008\")": "3",
|
|
|
|
"=DAY(\"3-February-2008\")": "3",
|
|
|
|
"=DAY(\"01/25/20\")": "25",
|
|
|
|
"=DAY(\"01/25/20\")": "25",
|
|
|
|
"=DAY(\"01/25/31\")": "25",
|
|
|
|
"=DAY(\"01/25/31\")": "25",
|
|
|
|
|
|
|
|
// MONTH
|
|
|
|
|
|
|
|
"=MONTH(42171)": "6",
|
|
|
|
|
|
|
|
"=MONTH(\"31-May-2015\")": "5",
|
|
|
|
// Text Functions
|
|
|
|
// Text Functions
|
|
|
|
// CHAR
|
|
|
|
// CHAR
|
|
|
|
"=CHAR(65)": "A",
|
|
|
|
"=CHAR(65)": "A",
|
|
|
@ -1981,6 +1984,12 @@ func TestCalcCellValue(t *testing.T) {
|
|
|
|
"=DAY(\"3-January-9223372036854775808\")": "#VALUE!",
|
|
|
|
"=DAY(\"3-January-9223372036854775808\")": "#VALUE!",
|
|
|
|
"=DAY(\"9223372036854775808-January-1900\")": "#VALUE!",
|
|
|
|
"=DAY(\"9223372036854775808-January-1900\")": "#VALUE!",
|
|
|
|
"=DAY(\"0-January-1900\")": "#VALUE!",
|
|
|
|
"=DAY(\"0-January-1900\")": "#VALUE!",
|
|
|
|
|
|
|
|
// MONTH
|
|
|
|
|
|
|
|
"=MONTH()": "MONTH requires exactly 1 argument",
|
|
|
|
|
|
|
|
"=MONTH(43891,43101)": "MONTH requires exactly 1 argument",
|
|
|
|
|
|
|
|
"=MONTH(-1)": "MONTH only accepts positive argument",
|
|
|
|
|
|
|
|
"=MONTH(\"text\")": "#VALUE!",
|
|
|
|
|
|
|
|
"=MONTH(\"January 25, 100\")": "#VALUE!",
|
|
|
|
// NOW
|
|
|
|
// NOW
|
|
|
|
"=NOW(A1)": "NOW accepts no arguments",
|
|
|
|
"=NOW(A1)": "NOW accepts no arguments",
|
|
|
|
// TODAY
|
|
|
|
// TODAY
|
|
|
|