Then a disturb side word line is selected, and inverted data of the test pattern is written in the memory cell of the bit-line the same as the target memory cell, and data the same as the test pattern is written in the memory cell of the adjacent bit line (S12).