|
|
@ -1,7 +1,7 @@
|
|
|
|
class TestSet < ApplicationRecord
|
|
|
|
class TestSet < ApplicationRecord
|
|
|
|
# match_rule: 匹配规则: full: 完全匹配, last: 末尾匹配
|
|
|
|
# match_rule: 匹配规则: full: 完全匹配, last: 末尾匹配
|
|
|
|
#
|
|
|
|
#
|
|
|
|
validates :input, length: { maximum: 5000, too_long: "不能超过5000个字符" }
|
|
|
|
validates :input, length: { maximum: 65000, too_long: "不能超过65000个字符" }
|
|
|
|
validates :output, length: { maximum: 65000, too_long: "不能超过65000个字符" }
|
|
|
|
validates :output, length: { maximum: 65000, too_long: "不能超过65000个字符" }
|
|
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|