swift learning ，test program